From 009b55edc4bad5b46ace88f3c255bbff8671d137 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 26 Aug 2018 14:16:49 -0500 Subject: Convert more commands to the new option/GLOBALS code style. --- toys/posix/nice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toys/posix/nice.c') 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); } -- cgit v1.2.3