diff options
author | peter <peter@FreeBSD.org> | 1996-08-25 21:12:01 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-25 21:12:01 +0000 |
commit | a5eafc88c57bd29b20f08b371c61fcf2b5df93a6 (patch) | |
tree | c9475df4865da030976237416491e0d5ad8f720f /usr.bin/tail/misc.c | |
parent | 86926bee8cab2cfd47a24f582269eef739f4a2ff (diff) | |
download | FreeBSD-src-a5eafc88c57bd29b20f08b371c61fcf2b5df93a6.zip FreeBSD-src-a5eafc88c57bd29b20f08b371c61fcf2b5df93a6.tar.gz |
Argh! caught! *blush*.. This program was supplying it's own 'err' routine
which was slightly different to the libc one. To save any more cunfusion,
use the libc one.
Diffstat (limited to 'usr.bin/tail/misc.c')
-rw-r--r-- | usr.bin/tail/misc.c | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/usr.bin/tail/misc.c b/usr.bin/tail/misc.c index 18fd63d..fb38d76 100644 --- a/usr.bin/tail/misc.c +++ b/usr.bin/tail/misc.c @@ -50,42 +50,11 @@ static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93"; void ierr() { - err(0, "%s: %s", fname, strerror(errno)); + err(0, "%s", fname); } void oerr() { - err(1, "stdout: %s", strerror(errno)); -} - -#if __STDC__ -#include <stdarg.h> -#else -#include <varargs.h> -#endif - -void -#if __STDC__ -err(int fatal, const char *fmt, ...) -#else -err(fatal, fmt, va_alist) - int fatal; - char *fmt; - va_dcl -#endif -{ - va_list ap; -#if __STDC__ - va_start(ap, fmt); -#else - va_start(ap); -#endif - (void)fprintf(stderr, "tail: "); - (void)vfprintf(stderr, fmt, ap); - va_end(ap); - (void)fprintf(stderr, "\n"); - if (fatal) - exit(1); - rval = 1; + err(1, "stdout"); } |