diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-21 21:51:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-21 21:51:52 +0000 |
commit | 7320c7408d45354bdc901639d71064ae9ef156ee (patch) | |
tree | ff0a5f3bf366ff01bef0e1464875085cba3d9530 /usr.bin | |
parent | 937172ebee44a9e33a74b46c1e04570902a87d83 (diff) |
use existing protos
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/hexdump/display.c | 7 | ||||
-rw-r--r-- | usr.bin/hexdump/hexdump.c | 7 |
2 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/hexdump/display.c b/usr.bin/hexdump/display.c index ef650ff8866..aa9568b9e7d 100644 --- a/usr.bin/hexdump/display.c +++ b/usr.bin/hexdump/display.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)display.c 5.11 (Berkeley) 3/9/91";*/ -static char rcsid[] = "$Id: display.c,v 1.1 1995/10/18 08:45:23 deraadt Exp $"; +static char rcsid[] = "$Id: display.c,v 1.2 1996/05/21 21:51:51 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -279,7 +279,7 @@ extern off_t skip; /* bytes to skip */ next(argv) char **argv; { - extern int errno, exitval; + extern int exitval; static int done; int statok; @@ -316,7 +316,6 @@ doskip(fname, statok) char *fname; int statok; { - extern int errno; struct stat sbuf; if (statok) { @@ -354,8 +353,6 @@ emalloc(size) nomem() { - extern int errno; - (void)fprintf(stderr, "hexdump: %s.\n", strerror(errno)); exit(1); } diff --git a/usr.bin/hexdump/hexdump.c b/usr.bin/hexdump/hexdump.c index b541c97385c..e2a47ea70da 100644 --- a/usr.bin/hexdump/hexdump.c +++ b/usr.bin/hexdump/hexdump.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)hexdump.c 5.5 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$Id: hexdump.c,v 1.1 1995/10/18 08:45:23 deraadt Exp $"; +static char rcsid[] = "$Id: hexdump.c,v 1.2 1996/05/21 21:51:51 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -55,11 +55,10 @@ main(argc, argv) int argc; char **argv; { - extern int errno; register FS *tfs; - char *p, *rindex(); + char *p; - if (!(p = rindex(argv[0], 'o')) || strcmp(p, "od")) + if (!(p = strrchr(argv[0], 'o')) || strcmp(p, "od")) newsyntax(argc, &argv); else oldsyntax(argc, &argv); |