summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlex Feldman <alex@cvs.openbsd.org>1999-05-19 03:17:17 +0000
committerAlex Feldman <alex@cvs.openbsd.org>1999-05-19 03:17:17 +0000
commit7dd7a386ee321dc5b6befba36cc2634639a23384 (patch)
tree8e2af35215558fc38efd2212c2cf785fb1399927 /usr.bin
parentc03667dbf4562ada49e5610b8a308e6b96bce2d1 (diff)
Use fprintf/exit in place of errx for usage display.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/encrypt/encrypt.c6
-rw-r--r--usr.bin/indent/indent.c10
2 files changed, 10 insertions, 6 deletions
diff --git a/usr.bin/encrypt/encrypt.c b/usr.bin/encrypt/encrypt.c
index 17f800835e1..a9c6ced3595 100644
--- a/usr.bin/encrypt/encrypt.c
+++ b/usr.bin/encrypt/encrypt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: encrypt.c,v 1.7 1997/06/17 21:03:40 kstailey Exp $ */
+/* $OpenBSD: encrypt.c,v 1.8 1999/05/19 03:17:15 alex Exp $ */
/*
* Copyright (c) 1996, Jason Downs. All rights reserved.
@@ -52,7 +52,9 @@ char buffer[_PASSWORD_LEN];
void usage()
{
- errx(1, "usage: %s [-k] [-b rounds] [-m] [-s salt] [string]", progname);
+ fprintf(stderr, "usage: %s [-k] [-b rounds] [-m] [-s salt] [string]\n",
+ progname);
+ exit(1);
}
char *trim(line)
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;