aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/modules/hello.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-03-16 14:26:40 +0000
committerMatt Fleming <matt.fleming@linux.intel.com>2011-03-16 14:26:40 +0000
commitf7d29d0174532a9ffe5cc77354a979a2bd604387 (patch)
tree9b6c165d9106cc61792727485a0d5cfbe9e524b0 /com32/elflink/modules/hello.c
parent5dd57b262e37caeac377807d9971652516f347b1 (diff)
downloadsyslinux-f7d29d0174532a9ffe5cc77354a979a2bd604387.tar.gz
syslinux-f7d29d0174532a9ffe5cc77354a979a2bd604387.tar.xz
syslinux-f7d29d0174532a9ffe5cc77354a979a2bd604387.zip
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 <matt.fleming@linux.intel.com>
Diffstat (limited to 'com32/elflink/modules/hello.c')
-rw-r--r--com32/elflink/modules/hello.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/elflink/modules/hello.c b/com32/elflink/modules/hello.c
index cba63e2e..b38f05c4 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);