diff options
author | Maxim Konovalov <maxim@FreeBSD.org> | 2002-04-10 13:38:09 +0000 |
---|---|---|
committer | Maxim Konovalov <maxim@FreeBSD.org> | 2002-04-10 13:38:09 +0000 |
commit | 814390668096c9f774b4b49b1fe716dcc2bde577 (patch) | |
tree | 2af680cb07a0f1911fcd40776415a288079f6911 /usr.bin/renice | |
parent | 380ee390fdb64083024cdfd1095598250632a495 (diff) | |
download | src-814390668096c9f774b4b49b1fe716dcc2bde577.tar.gz src-814390668096c9f774b4b49b1fe716dcc2bde577.zip |
Notes
Diffstat (limited to 'usr.bin/renice')
-rw-r--r-- | usr.bin/renice/renice.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c index f9e58368c2df..d1d6440f1d71 100644 --- a/usr.bin/renice/renice.c +++ b/usr.bin/renice/renice.c @@ -82,17 +82,12 @@ main(int argc, char *argv[]) if (strcmp(*argv, "-n") == 0) { incr = 1; argc--, argv++; - if (argc == 0) + if (argc < 2) usage(); } if (getnum("priority", *argv, &prio)) return (1); - prio = atoi(*argv); argc--, argv++; - if (prio > PRIO_MAX) - prio = PRIO_MAX; - if (prio < PRIO_MIN) - prio = PRIO_MIN; for (; argc > 0; argc--, argv++) { if (strcmp(*argv, "-g") == 0) { which = PRIO_PGRP; |