From: Anon Ymous Date: Tue, 16 Jan 2007 14:54:57 +0000 (+0000) Subject: Make this compile with gcc warnings on and make it pass lint. Fix a X-Git-Tag: FILE4_20~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4ca061cde1ef32f7659a7dfdc861e7f7be2cf31;p=file Make this compile with gcc warnings on and make it pass lint. Fix a puts()/putc() usage error. --- diff --git a/src/file.c b/src/file.c index 01a3db75..a2e77301 100644 --- a/src/file.c +++ b/src/file.c @@ -71,7 +71,7 @@ #include "patchlevel.h" #ifndef lint -FILE_RCSID("@(#)$File: file.c,v 1.104 2006/11/25 17:28:54 christos Exp $") +FILE_RCSID("@(#)$File: file.c,v 1.105 2007/01/12 17:38:28 christos Exp $") #endif /* lint */ @@ -331,7 +331,7 @@ main(int argc, char *argv[]) private void /*ARGSUSED*/ -load(const char *m, int flags) +load(const char *m __unused, int flags) { if (magic) return; @@ -404,7 +404,7 @@ process(const char *inname, int wid) if (wid > 0 && !bflag) { (void)printf("%s", std_in ? "/dev/stdin" : inname); if (nulsep) - (void)puts('\0'); + (void)putc('\0', stdout); else (void)printf("%s", separator); (void)printf("%*s ",