aboutsummaryrefslogtreecommitdiffstats
path: root/libinstaller
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-06-09 11:20:41 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-06-09 11:20:41 -0700
commit95c91f42886abdd9af08cbed66b50dd37eb555dc (patch)
treeaf51954f4683f2d7460a2e28931eefe183c24ff8 /libinstaller
parent146c34a2632a4295b1aef44ef79e84b4d4b9cf7e (diff)
downloadsyslinux-95c91f42886abdd9af08cbed66b50dd37eb555dc.tar.gz
syslinux-95c91f42886abdd9af08cbed66b50dd37eb555dc.tar.xz
syslinux-95c91f42886abdd9af08cbed66b50dd37eb555dc.zip
Clean up warnings in previous checkin
Clean up warnings in checkin 146c34a2 Make syslinux installer real "pathbased" 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 b28a443b..96f155ff 100644
--- a/libinstaller/syslxmod.c
+++ b/libinstaller/syslxmod.c
@@ -21,6 +21,7 @@
#include <inttypes.h>
#include <string.h>
#include <stddef.h>
+#include <stdlib.h>
#include "syslinux.h"
#include "syslxint.h"
@@ -233,9 +234,9 @@ int syslinux_patch(const uint32_t * sectors, int nsectors,
uint32_t *wp;
int nsect = (boot_image_len + 511) >> 9;
uint32_t csum;
- int i, dw, nptrs, rv;
+ int i, dw, nptrs;
struct boot_sector *sbs = (struct boot_sector *)boot_sector;
- int diroffset, dirlen;
+ size_t diroffset, dirlen;
if (nsectors < nsect)
return -1;