From: Matt Fleming Date: Wed, 16 Mar 2011 14:26:40 +0000 (+0000) Subject: elflink: Fix compiler warnings in hello.c X-Git-Tag: syslinux-5.00-pre1~80^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7d29d0174532a9ffe5cc77354a979a2bd604387;p=platform%2Fupstream%2Fsyslinux.git elflink: Fix compiler warnings in hello.c Fix the following warnings, hello.c: In function ‘hello_main’: hello.c:23:5: warning: too few arguments for format hello.c:20:9: warning: unused variable ‘i’ Signed-off-by: Matt Fleming --- diff --git a/com32/elflink/modules/hello.c b/com32/elflink/modules/hello.c index cba63e2..b38f05c 100644 --- a/com32/elflink/modules/hello.c +++ b/com32/elflink/modules/hello.c @@ -17,10 +17,9 @@ static int hello_main(int argc, char **argv) { int *nums = NULL; - int i; nums = malloc(NUM_COUNT * sizeof(int)); - printf("Hello, world, from 0x%08X! malloc return %p\n", (unsigned int)&hello_main), nums; + printf("Hello, world, from 0x%08X! malloc return %p\n", (unsigned int)&hello_main, nums); free(nums);