From 80bf41170af91b62b9950a5cf7baf3c364a8f539 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Tue, 25 Jul 2006 22:03:22 +0200 Subject: Fixed some warnings --- util/stormdwg.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'util/stormdwg.c') 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 -/* #include */ +#include 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 */ -- cgit v1.2.3