summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-07-25 22:03:22 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-07-25 22:03:22 +0200
commit80bf41170af91b62b9950a5cf7baf3c364a8f539 (patch)
tree103d263dda73b5f5b7259ea09b69d946aed73bc8 /util
parent78c12368fa1c1985f41ce856ff453a967429870a (diff)
Fixed some warnings
Diffstat (limited to 'util')
-rw-r--r--util/stormdwg.c8
1 files changed, 3 insertions, 5 deletions
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 */