aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-06-08 11:25:42 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-06-12 10:57:09 +0100
commit97a087ea7814db5134e4d5cd40930fa4bd20f2e0 (patch)
tree2df3c6cdbbd16531e3a06b438956afd9e9434cea /com32/elflink/ldlinux
parent580de4dedd7f67b4a9ae44ae68ac73a248c037ea (diff)
downloadsyslinux-97a087ea7814db5134e4d5cd40930fa4bd20f2e0.tar.gz
syslinux-97a087ea7814db5134e4d5cd40930fa4bd20f2e0.tar.xz
syslinux-97a087ea7814db5134e4d5cd40930fa4bd20f2e0.zip
elflink: Fix compiler warning
Apply the correct cast to fix the following warning, chainboot.c: In function ‘chainboot_file’: chainboot.c:88:7: warning: passing argument 3 of ‘syslinux_add_movelist’ makes integer from pointer without a cast ../../../com32/include/syslinux/movebits.h:57:5: note: expected ‘addr_t’ but argument is of type ‘const void * const’ Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/elflink/ldlinux')
-rw-r--r--com32/elflink/ldlinux/chainboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/chainboot.c b/com32/elflink/ldlinux/chainboot.c
index cdaafb85..33589e0c 100644
--- a/com32/elflink/ldlinux/chainboot.c
+++ b/com32/elflink/ldlinux/chainboot.c
@@ -85,7 +85,7 @@ void chainboot_file(const char *file, enum kernel_type type)
if (sdi->c.filesystem == SYSLINUX_FS_SYSLINUX ||
sdi->c.filesystem == SYSLINUX_FS_EXTLINUX) {
if (syslinux_add_movelist(&fraglist, 0x800 - 18,
- (const void *)sdi->r.esbx, 16))
+ (addr_t)sdi->r.esbx, 16))
goto bail;
/* DS:SI points to partition info */