X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/051b1e55503193faff5663c9dfedcddd7d62803a..ca67e7b465996afb3821d6a075c4dc6a7f0f5d52:/usr/src/usr.bin/tip/log.c?ds=inline diff --git a/usr/src/usr.bin/tip/log.c b/usr/src/usr.bin/tip/log.c index 6a3e3da44e..24391a4dd7 100644 --- a/usr/src/usr.bin/tip/log.c +++ b/usr/src/usr.bin/tip/log.c @@ -5,11 +5,12 @@ */ #ifndef lint -static char sccsid[] = "@(#)log.c 5.1 (Berkeley) %G%"; +static char sccsid[] = "@(#)log.c 5.2 (Berkeley) 5/2/87"; #endif not lint #include "tip.h" +#ifdef ACULOG static FILE *flog = NULL; /* @@ -45,16 +46,14 @@ logent(group, num, acu, message) num, #endif acu, message); - fflush(flog); + (void) fflush(flog); (void) flock(fileno(flog), LOCK_UN); } loginit() { - -#ifdef ACULOG flog = fopen(value(LOG), "a"); if (flog == NULL) - fprintf(stderr, "can't open log file\r\n"); -#endif + fprintf(stderr, "can't open log file %s.\r\n", value(LOG)); } +#endif