diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-11-02 19:41:07 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-11-02 19:41:07 +0000 |
commit | 3b7d55a85ac35adb10d6980e2b01aa24853c29c7 (patch) | |
tree | 03a9df0116c7d0a2252f83f0956f11f6b3b29133 /usr.bin/hexdump/odsyntax.c | |
parent | ef2ab22bf582092e9e71bf271565532885ba7750 (diff) |
replace fprintf(stderr)/exit w/ err/warn
Diffstat (limited to 'usr.bin/hexdump/odsyntax.c')
-rw-r--r-- | usr.bin/hexdump/odsyntax.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/hexdump/odsyntax.c b/usr.bin/hexdump/odsyntax.c index ae38ff61e1b..738962dfc29 100644 --- a/usr.bin/hexdump/odsyntax.c +++ b/usr.bin/hexdump/odsyntax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: odsyntax.c,v 1.6 2001/09/30 07:17:03 pvalchev Exp $ */ +/* $OpenBSD: odsyntax.c,v 1.7 2001/11/02 19:41:06 mickey Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -35,13 +35,14 @@ #ifndef lint /*static char sccsid[] = "from: @(#)odsyntax.c 5.4 (Berkeley) 3/8/91";*/ -static char rcsid[] = "$OpenBSD: odsyntax.c,v 1.6 2001/09/30 07:17:03 pvalchev Exp $"; +static char rcsid[] = "$OpenBSD: odsyntax.c,v 1.7 2001/11/02 19:41:06 mickey Exp $"; #endif /* not lint */ #include <sys/types.h> #include <stdlib.h> -#include <ctype.h> #include <stdio.h> +#include <ctype.h> +#include <err.h> #include "hexdump.h" int deprecated; @@ -131,11 +132,10 @@ oldsyntax(argc, argvp) case 'w': case '?': default: - (void)fprintf(stderr, - "od: od(1) has been deprecated for hexdump(1).\n"); + warnx("od(1) has been deprecated for hexdump(1)"); if (ch != '?') - (void)fprintf(stderr, -"od: hexdump(1) compatibility doesn't support the -%c option%s\n", + warnx("hexdump(1) compatibility doesn't" + "support the -%c option%s", ch, ch == 's' ? "; see strings(1)." : "."); usage(); } |