#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);
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;
char mntname[128];
char *ldlinux_name, **argp, *opt;
const char *subdir = NULL;
- uint32_t *sectors;
+ uint32_t *sectors = NULL;
int ldlinux_sectors;
int nsectors = 0;
const char *errmsg;