diff options
author | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-07-25 22:03:22 +0200 |
---|---|---|
committer | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-07-25 22:03:22 +0200 |
commit | 80bf41170af91b62b9950a5cf7baf3c364a8f539 (patch) | |
tree | 103d263dda73b5f5b7259ea09b69d946aed73bc8 | |
parent | 78c12368fa1c1985f41ce856ff453a967429870a (diff) |
Fixed some warnings
-rw-r--r-- | src/mga_dri.c | 2 | ||||
-rw-r--r-- | util/stormdwg.c | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/mga_dri.c b/src/mga_dri.c index c675a63..a43ebe4 100644 --- a/src/mga_dri.c +++ b/src/mga_dri.c @@ -1025,7 +1025,7 @@ Bool MGADRIScreenInit( ScreenPtr pScreen ) pDRIInfo->ddxDriverMajorVersion = MGA_MAJOR_VERSION; pDRIInfo->ddxDriverMinorVersion = MGA_MINOR_VERSION; pDRIInfo->ddxDriverPatchVersion = MGA_PATCHLEVEL; - pDRIInfo->frameBufferPhysicalAddress = pMga->FbAddress; + pDRIInfo->frameBufferPhysicalAddress = (void *) pMga->FbAddress; pDRIInfo->frameBufferSize = pMga->FbMapSize; pDRIInfo->frameBufferStride = pScrn->displayWidth*(pScrn->bitsPerPixel/8); pDRIInfo->ddxDrawableTableEntry = MGA_MAX_DRAWABLES; diff --git a/util/stormdwg.c b/util/stormdwg.c index e13916c..8f04e0e 100644 --- a/util/stormdwg.c +++ b/util/stormdwg.c @@ -5,7 +5,7 @@ /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/mga/util/stormdwg.c,v 1.1 1997/04/12 14:11:29 hohndel Exp $ */ #include <stdio.h> -/* #include <stdlib.h> */ +#include <stdlib.h> char *opcodes[] = { "line_open", /* 0000 */ @@ -95,9 +95,7 @@ char *bitmod[] = { "BU24RGB - source is color, or for ILOAD, it's in 24 bpp RGB" /* 1111 */ }; -main(argc, argv) -int argc; -char *argv[]; +int main(int argc, char **argv) { unsigned long val, tmp; @@ -109,7 +107,7 @@ char *argv[]; val = strtoul(argv[1], NULL, 16); - printf("the val is : %d\n", val); + printf("the val is : %lu\n", val); /* opcode */ |