summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
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 */