[syslinux:elflink] elflink: Fix compiler warnings in hello.c
syslinux-bot for Matt Fleming
matt.fleming at linux.intel.com
Fri Mar 18 11:30:54 PDT 2011
Commit-ID: f7d29d0174532a9ffe5cc77354a979a2bd604387
Gitweb: http://syslinux.zytor.com/commit/f7d29d0174532a9ffe5cc77354a979a2bd604387
Author: Matt Fleming <matt.fleming at linux.intel.com>
AuthorDate: Wed, 16 Mar 2011 14:26:40 +0000
Committer: Matt Fleming <matt.fleming at linux.intel.com>
CommitDate: Wed, 16 Mar 2011 14:26:40 +0000
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 at linux.intel.com>
---
com32/elflink/modules/hello.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
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);
More information about the Syslinux-commits
mailing list