From: Alan Cox Date: Tue, 28 Jun 2016 13:22:33 +0000 (+0100) Subject: writebin: fix screw up in conversion X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=14797938aebe34a62f8bd8a91a83b7970a26e662;p=FUZIX.git writebin: fix screw up in conversion Forgot to commit this --- diff --git a/Applications/ld09/writebin.c b/Applications/ld09/writebin.c index ada78bdc..d43cff81 100644 --- a/Applications/ld09/writebin.c +++ b/Applications/ld09/writebin.c @@ -66,7 +66,6 @@ #define ABS_TEXT_MAX 64 -#define offsetof(struc, mem) ((int) &((struc *) 0)->mem) #define memsizeof(struc, mem) sizeof(((struc *) 0)->mem) static bool_t bits32; /* nonzero for 32-bit executable */ @@ -100,21 +99,21 @@ static bin_off_t spos; /* position in current seg */ static bool_t uzp; /* nonzero for unmapped zero page */ #ifdef EDOS -unsigned binheaderlength(char *commandname); +static unsigned binheaderlength(char *commandname); char *idconvert(struct entrylist *elptr, char *commandname); #endif -void linkmod(struct modstruct *modptr); -void padmod(struct modstruct *modptr); -void setsym(char *name, bin_off_t value); -void symres(char *name); -void setseg(fastin_pt newseg); -void skip(unsigned countsize); +static void linkmod(struct modstruct *modptr); +static void padmod(struct modstruct *modptr); +static void setsym(char *name, bin_off_t value); +static void symres(char *name); +static void setseg(fastin_pt newseg); +static void skip(unsigned countsize); #ifdef EDOS -void writeheader(char *commandname); +static void writeheader(char *commandname); #else -void writeheader(void); +static void writeheader(void); #endif -void writenulls(bin_off_t count); +static void writenulls(bin_off_t count); /* write binary file */ #ifndef FUNCNAME