summaryrefslogtreecommitdiffstats
path: root/sys-utils/renice.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:35 +0100
committerKarel Zak2006-12-07 00:25:35 +0100
commit2b6fc908bc368b540845a313c3b8a867c5ad9a42 (patch)
tree6fad48a239bc90515a5dc4084d6e3c3ee1f41e29 /sys-utils/renice.c
parentImported from util-linux-2.7.1 tarball. (diff)
downloadkernel-qcow2-util-linux-2b6fc908bc368b540845a313c3b8a867c5ad9a42.tar.gz
kernel-qcow2-util-linux-2b6fc908bc368b540845a313c3b8a867c5ad9a42.tar.xz
kernel-qcow2-util-linux-2b6fc908bc368b540845a313c3b8a867c5ad9a42.zip
Imported from util-linux-2.8 tarball.
Diffstat (limited to 'sys-utils/renice.c')
-rw-r--r--sys-utils/renice.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/sys-utils/renice.c b/sys-utils/renice.c
index 63af8cd4e..8867d0022 100644
--- a/sys-utils/renice.c
+++ b/sys-utils/renice.c
@@ -31,16 +31,6 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-static char copyright[] =
-"@(#) Copyright (c) 1983, 1989, 1993\n\
- The Regents of the University of California. All rights reserved.\n";
-#endif /* not lint */
-
-#ifndef lint
-static char sccsid[] = "@(#)renice.c 8.1 (Berkeley) 6/9/93";
-#endif /* not lint */
-
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
@@ -56,9 +46,8 @@ int donice(int,int,int);
* or groups of processes which are already
* running.
*/
-void
-main(argc, argv)
- char **argv;
+int
+main(int argc, char **argv)
{
int which = PRIO_PROCESS;
int who = 0, prio, errs = 0;
@@ -107,7 +96,7 @@ main(argc, argv)
}
errs += donice(which, who, prio);
}
- exit(errs != 0);
+ return (errs != 0);
}
int