diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-02-07 20:05:52 -0800 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2019-02-07 20:05:52 -0800 |
commit | 458a54133ecdf1685c02294d812cb562fe7bf4c3 (patch) | |
tree | f3dc3a87dfdeb5d179e3f4ef73bf74d651136432 /com32/samples/hello.c | |
parent | b40487005223a78c3bb4c300ef6c436b3f6ec1f7 (diff) | |
download | syslinux-458a54133ecdf1685c02294d812cb562fe7bf4c3.tar.gz syslinux-458a54133ecdf1685c02294d812cb562fe7bf4c3.tar.xz syslinux-458a54133ecdf1685c02294d812cb562fe7bf4c3.zip |
Fix all warnings, and better separate code that should not be mixedsyslinux-6.04-pre3
Clean up a number of warnings in the tree.
Refactor especially the core code so we don't end up building a bunch
of BIOS-specific code for EFI, and general build cleanups.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'com32/samples/hello.c')
-rw-r--r-- | com32/samples/hello.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/samples/hello.c b/com32/samples/hello.c index d3d4d299..8ab00984 100644 --- a/com32/samples/hello.c +++ b/com32/samples/hello.c @@ -18,7 +18,8 @@ int main(int argc __unused, char **argv __unused) int *nums = NULL; nums = malloc(NUM_COUNT * sizeof(int)); - printf("Hello, world, from 0x%08X! malloc return %p\n", (unsigned int)&main, nums); + printf("Hello, world, from %p! malloc return %p\n", + (const void *)&main, nums); free(nums); |