diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-12 23:43:08 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-12 23:43:08 +0000 |
commit | aa1d7761d73e912c4a251a0b59620889e8f157c7 (patch) | |
tree | d0856ed255235bb2f07a9512db12a4f6d7bd60a1 /usr.bin/tail/extern.h | |
parent | e661b0e07a7f4c778ac8e9b5eb341a7ad9795c2b (diff) |
Fix core dump and use libc err(3) instead of private one (which had
slightly different semantics). Also clean up some gcc -Wall'isms.
Diffstat (limited to 'usr.bin/tail/extern.h')
-rw-r--r-- | usr.bin/tail/extern.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/tail/extern.h b/usr.bin/tail/extern.h index e1a57d062f1..3bcd1ad5e13 100644 --- a/usr.bin/tail/extern.h +++ b/usr.bin/tail/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.2 1996/06/26 05:40:14 deraadt Exp $ */ +/* $OpenBSD: extern.h,v 1.3 1997/01/12 23:43:04 millert Exp $ */ /* $NetBSD: extern.h,v 1.3 1994/11/23 07:42:00 jtc Exp $ */ /*- @@ -36,6 +36,9 @@ * @(#)extern.h 8.1 (Berkeley) 6/6/93 */ +#define ierr() (err(0, fname)) +#define oerr() (err(1, "stdout")) + #define WR(p, size) \ if (write(STDOUT_FILENO, p, size) != size) \ oerr(); @@ -48,9 +51,5 @@ void reverse __P((FILE *, enum STYLE, long, struct stat *)); void bytes __P((FILE *, off_t)); void lines __P((FILE *, off_t)); -void err __P((int fatal, const char *fmt, ...)); -void ierr __P((void)); -void oerr __P((void)); - extern int fflag, rflag, rval; extern char *fname; |