diff options
author | Wolfram Schneider <wosch@FreeBSD.org> | 1996-11-02 15:28:57 +0000 |
---|---|---|
committer | Wolfram Schneider <wosch@FreeBSD.org> | 1996-11-02 15:28:57 +0000 |
commit | 5a52948cf66ce37fc3a6a3f2362ec76cad53a122 (patch) | |
tree | 1dd393f94ac15c2bee13a6ad947bb4e8b6f8eb0a /usr.bin/nice | |
parent | 00cb92bf5959ad2542adc716284f23bbda4bd36e (diff) | |
download | src-test-5a52948cf66ce37fc3a6a3f2362ec76cad53a122.tar.gz src-test-5a52948cf66ce37fc3a6a3f2362ec76cad53a122.zip |
remove duplicated usage string from commit rev 1.2
fix usage()
Notes
Notes:
svn path=/head/; revision=19331
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 b34a9416a1afb..300dc873d8959 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); } |