From: Ian Darwin Date: Fri, 22 May 1992 17:47:58 +0000 (+0000) Subject: Warning and error take exactly 2 args here; fixup uncompress() decl; X-Git-Tag: FILE3_27~283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f83cbd59015b94ddc20fdf23a3bedc84f8ba980;p=file Warning and error take exactly 2 args here; fixup uncompress() decl; add non-ANSI decls for all listed functions. --- diff --git a/src/file.h b/src/file.h index 3bad6272..0c49d249 100644 --- a/src/file.h +++ b/src/file.h @@ -57,19 +57,33 @@ struct magic { #if defined(__STDC__) || defined(__cplusplus) int apprentice(char *fn, int check); int ascmagic(unsigned char *buf, int nbytes); -void error(char *fmt, ...); +void error(char *fmt, char *d); +FILE *efopen(char *fn, char *mode); int fsmagic(char *fn); int is_compress(unsigned char *p, int *b); int is_tar(unsigned char *buf); void mdump(struct magic *m); -parse(char *l, int *ndx, int check); +int parse(char *l, int *ndx, int check); void process(char *inname); void showstr(char *s); int softmagic(unsigned char *buf, int nbytes); void tryit(unsigned char *buf, int nb); -uncompress(unsigned char *old, unsigned char **newch, int n); -void warning(char *f, ...); +int uncompress(unsigned char *old, unsigned char **newch, int n); +void warning(char *f, char *d); #else -/* error "Non-ANSI externs not written yet" */ -extern void error(), exit(); +int apprentice(); +int ascmagic(); +void error(); +FILE *efopen(); +int fsmagic(); +int is_compress(); +int is_tar(); +void mdump(); +int parse(); +void process(); +void showstr(); +int softmagic(); +void tryit(); +int uncompress(); +void warning(); #endif