From: Ian Darwin Date: Wed, 16 Sep 1987 14:43:52 +0000 (+0000) Subject: Fix rcsid; reformat long warning. X-Git-Tag: FILE3_27~391 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8919d0df280aacd0b39395f1911cc86cba0e4465;p=file Fix rcsid; reformat long warning. --- diff --git a/src/apprentice.c b/src/apprentice.c index 3c526354..9a654e25 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -30,13 +30,13 @@ #include "file.h" #ifndef lint -static char *moduleid = "$Header: /home/glen/git/file/cvs/file/src/apprentice.c,v 1.6 1987/09/16 10:11:06 ian Exp $"; +static char *moduleid = + "@(#)$Header: /home/glen/git/file/cvs/file/src/apprentice.c,v 1.7 1987/09/16 14:43:52 ian Exp $"; #endif /* lint */ #define MAXSTR 500 #define EATAB {while (isascii(*l) && isspace(*l)) ++l;} - extern char *progname; extern char *magicfile; extern int debug; /* option */ @@ -88,9 +88,14 @@ int *ndx, check; static int warned = 0; struct magic *m; + /* + * TODO malloc the magic structures (linked list?) so this can't happen + */ if (nd+1 >= MAXMAGIS){ if (warned++ == 0) - warning("magic table overflow - increase MAXMAGIS beyond %d in file/apprentice.c\n", MAXMAGIS); + warning( +"magic table overflow - increase MAXMAGIS beyond %d in file/apprentice.c\n", + MAXMAGIS); return 0; } m = &magic[*ndx];