aboutsummaryrefslogtreecommitdiffstats
path: root/libinstaller
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-05-12 16:06:10 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-05-12 16:06:10 -0700
commitd7eb569f092913018934dc702ba22af295557cc9 (patch)
tree2d8985035c9d1acbeaa8ff7b9cc6788537009d0e /libinstaller
parent8f1d81dd38e7cd49b686a9fd16d056fdd818b687 (diff)
downloadsyslinux-d7eb569f092913018934dc702ba22af295557cc9.tar.gz
syslinux-d7eb569f092913018934dc702ba22af295557cc9.tar.xz
syslinux-d7eb569f092913018934dc702ba22af295557cc9.zip
installers: fix warnings
CLean up warnings in the installers. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'libinstaller')
-rw-r--r--libinstaller/syslxmod.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libinstaller/syslxmod.c b/libinstaller/syslxmod.c
index 0285bb41..e18d8a69 100644
--- a/libinstaller/syslxmod.c
+++ b/libinstaller/syslxmod.c
@@ -25,11 +25,11 @@
#include "syslinux.h"
#include "syslxint.h"
-#define sbs ((struct boot_sector *)syslinux_bootsect)
-
void syslinux_make_bootsect(void *bs)
{
struct boot_sector *bootsect = bs;
+ const struct boot_sector *sbs =
+ (const struct boot_sector *)syslinux_bootsect;
memcpy(&bootsect->bsHead, &sbs->bsHead, bsHeadLen);
memcpy(&bootsect->bsCode, &sbs->bsCode, bsCodeLen);
@@ -234,6 +234,7 @@ int syslinux_patch(const uint32_t * sectors, int nsectors,
int nsect = (syslinux_ldlinux_len + 511) >> 9;
uint32_t csum;
int i, dw, nptrs, rv;
+ struct boot_sector *sbs = (struct boot_sector *)syslinux_bootsect;
if (nsectors < nsect)
return -1;