From 5f439a090fb0ccc09e03b6545135ed0d995766b3 Mon Sep 17 00:00:00 2001 From: wosch Date: Sat, 2 Nov 1996 15:28:57 +0000 Subject: remove duplicated usage string from commit rev 1.2 fix usage() --- usr.bin/nice/nice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/nice/nice.c b/usr.bin/nice/nice.c index b34a941..300dc87 100644 --- a/usr.bin/nice/nice.c +++ b/usr.bin/nice/nice.c @@ -65,7 +65,8 @@ main(argc, argv) int niceness = DEFNICE; if (argc < 2) - errx(1, "usage: nice [-number] command [arguments]"); + usage(); + if (argv[1][0] == '-') if (argv[1][1] == '-' || isdigit(argv[1][1])) { niceness = atoi(argv[1] + 1); @@ -89,7 +90,6 @@ main(argc, argv) void usage() { - (void)fprintf(stderr, - "nice [ -# ] command [ options ] [ operands ]\n"); + (void)fprintf(stderr, "usage: nice [-number] command [arguments]\n"); exit(1); } -- cgit v1.1