From 2b6fc908bc368b540845a313c3b8a867c5ad9a42 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:35 +0100 Subject: Imported from util-linux-2.8 tarball. --- sys-utils/renice.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'sys-utils/renice.c') 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 #include #include @@ -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 -- cgit v1.2.3-55-g7522