summaryrefslogtreecommitdiffstats
path: root/usr.bin/nice
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
committerbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
commit4822432874e997891c75df8d30dcab4c52d1a9fa (patch)
tree6a75551fe39c6d09c4b5991bbb0a4f3d685835fe /usr.bin/nice
parent7c7c72da3801ba6f43e728ff5145b4988674abeb (diff)
downloadFreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.zip
FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.tar.gz
Clean up some ambiguous nested if/elses.
Diffstat (limited to 'usr.bin/nice')
-rw-r--r--usr.bin/nice/nice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/nice/nice.c b/usr.bin/nice/nice.c
index 300dc87..c731ca9 100644
--- a/usr.bin/nice/nice.c
+++ b/usr.bin/nice/nice.c
@@ -67,12 +67,13 @@ main(argc, argv)
if (argc < 2)
usage();
- if (argv[1][0] == '-')
+ if (argv[1][0] == '-') {
if (argv[1][1] == '-' || isdigit(argv[1][1])) {
niceness = atoi(argv[1] + 1);
++argv;
} else
errx(1, "illegal option -- %s", argv[1]);
+ }
if (argv[1] == NULL)
usage();
OpenPOWER on IntegriCloud