summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/nice/nice.c6
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);
}
OpenPOWER on IntegriCloud