aboutsummaryrefslogtreecommitdiff
path: root/procps/renice.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /procps/renice.c
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'procps/renice.c')
-rw-r--r--procps/renice.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/procps/renice.c b/procps/renice.c
index a81156eea..a6f0820df 100644
--- a/procps/renice.c
+++ b/procps/renice.c
@@ -31,17 +31,17 @@
31extern int renice_main(int argc, char **argv) 31extern int renice_main(int argc, char **argv)
32{ 32{
33 int prio, status = EXIT_SUCCESS; 33 int prio, status = EXIT_SUCCESS;
34 34
35 if (argc < 3) bb_show_usage(); 35 if (argc < 3) bb_show_usage();
36 36
37 prio = atoi(*++argv); 37 prio = atoi(*++argv);
38 if (prio > 20) prio = 20; 38 if (prio > 20) prio = 20;
39 if (prio < -20) prio = -20; 39 if (prio < -20) prio = -20;
40 40
41 while (*++argv) { 41 while (*++argv) {
42 int ps = atoi(*argv); 42 int ps = atoi(*argv);
43 int oldp = getpriority(PRIO_PROCESS, ps); 43 int oldp = getpriority(PRIO_PROCESS, ps);
44 44
45 if (setpriority(PRIO_PROCESS, ps, prio) == 0) { 45 if (setpriority(PRIO_PROCESS, ps, prio) == 0) {
46 printf("%d: old priority %d, new priority %d\n", ps, oldp, prio ); 46 printf("%d: old priority %d, new priority %d\n", ps, oldp, prio );
47 } else { 47 } else {