diff options
author | wosch <wosch@FreeBSD.org> | 1996-11-02 15:28:57 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1996-11-02 15:28:57 +0000 |
commit | 5f439a090fb0ccc09e03b6545135ed0d995766b3 (patch) | |
tree | 1dd393f94ac15c2bee13a6ad947bb4e8b6f8eb0a /usr.bin/nice | |
parent | ccfee521f5122303db041e7b4d3157e6a6e08ee8 (diff) | |
download | FreeBSD-src-5f439a090fb0ccc09e03b6545135ed0d995766b3.zip FreeBSD-src-5f439a090fb0ccc09e03b6545135ed0d995766b3.tar.gz |
remove duplicated usage string from commit rev 1.2
fix usage()
Diffstat (limited to 'usr.bin/nice')
-rw-r--r-- | usr.bin/nice/nice.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |