projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is vodz' latest patch. Sorry it took so long...
[oweals/busybox.git]
/
renice.c
diff --git
a/renice.c
b/renice.c
index c81f31c5c91bb459c4882a67c8c879fe61920259..ec35bdcdeb1f7acd6483ea116825ef7508aab86b 100644
(file)
--- a/
renice.c
+++ b/
renice.c
@@
-20,18
+20,19
@@
*
*/
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <stdio.h>
#include <errno.h>
+#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <sys/resource.h>
+#include "busybox.h"
extern int renice_main(int argc, char **argv)
{
int prio, status = EXIT_SUCCESS;
extern int renice_main(int argc, char **argv)
{
int prio, status = EXIT_SUCCESS;
- if (argc < 3)
usage(renice_usage
);
+ if (argc < 3)
show_usage(
);
prio = atoi(*++argv);
if (prio > 20) prio = 20;
prio = atoi(*++argv);
if (prio > 20) prio = 20;
@@
-44,7
+45,7
@@
extern int renice_main(int argc, char **argv)
if (setpriority(PRIO_PROCESS, ps, prio) == 0) {
printf("%d: old priority %d, new priority %d\n", ps, oldp, prio );
} else {
if (setpriority(PRIO_PROCESS, ps, prio) == 0) {
printf("%d: old priority %d, new priority %d\n", ps, oldp, prio );
} else {
- perror
M
sg("%d: setpriority", ps);
+ perror
_m
sg("%d: setpriority", ps);
status = EXIT_FAILURE;
}
}
status = EXIT_FAILURE;
}
}