diff options
author | Alex Feldman <alex@cvs.openbsd.org> | 1999-05-19 03:17:17 +0000 |
---|---|---|
committer | Alex Feldman <alex@cvs.openbsd.org> | 1999-05-19 03:17:17 +0000 |
commit | 7dd7a386ee321dc5b6befba36cc2634639a23384 (patch) | |
tree | 8e2af35215558fc38efd2212c2cf785fb1399927 /usr.bin/indent/indent.c | |
parent | c03667dbf4562ada49e5610b8a308e6b96bce2d1 (diff) |
Use fprintf/exit in place of errx for usage display.
Diffstat (limited to 'usr.bin/indent/indent.c')
-rw-r--r-- | usr.bin/indent/indent.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c index 348d10ce018..e229d6797af 100644 --- a/usr.bin/indent/indent.c +++ b/usr.bin/indent/indent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: indent.c,v 1.5 1997/09/10 06:59:35 deraadt Exp $ */ +/* $OpenBSD: indent.c,v 1.6 1999/05/19 03:17:16 alex Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. @@ -45,7 +45,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)indent.c 5.16 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$OpenBSD: indent.c,v 1.5 1997/09/10 06:59:35 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: indent.c,v 1.6 1999/05/19 03:17:16 alex Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -208,8 +208,10 @@ main(argc, argv) else set_option(argv[i]); } /* end of for */ - if (input == NULL) - errx(1, "usage: indent file [ outfile ] [ options ]"); + if (input == NULL) { + fprintf(stderr, "usage: indent file [ outfile ] [ options ]\n"); + exit(1); + } if (output == NULL) if (troff) output = stdout; |