diff options
author | Rob Landley <rob@landley.net> | 2018-08-26 14:16:49 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-08-26 14:16:49 -0500 |
commit | 009b55edc4bad5b46ace88f3c255bbff8671d137 (patch) | |
tree | f4f856ef871104e37a5d123aa3ec3d01246c9e10 /toys/posix/nice.c | |
parent | 1aaef2d2b72800a5c6bedae04941304ce8e153be (diff) | |
download | toybox-009b55edc4bad5b46ace88f3c255bbff8671d137.tar.gz |
Convert more commands to the new option/GLOBALS code style.
Diffstat (limited to 'toys/posix/nice.c')
-rw-r--r-- | toys/posix/nice.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/posix/nice.c b/toys/posix/nice.c index 4b587ee6..57feffe1 100644 --- a/toys/posix/nice.c +++ b/toys/posix/nice.c @@ -24,15 +24,15 @@ config NICE #include "toys.h" GLOBALS( - long priority; + long n; ) void nice_main(void) { - if (!toys.optflags) TT.priority = 10; + if (!toys.optflags) TT.n = 10; errno = 0; - if (nice(TT.priority)==-1 && errno) perror_exit("Can't set priority"); + if (nice(TT.n)==-1 && errno) perror_exit("Can't set priority"); xexec(toys.optargs); } |