aboutsummaryrefslogtreecommitdiff
path: root/procps/renice.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
commit6ca409e0e4c198fe3081346eebbae3f068fe605a (patch)
tree060cb05d99220a1eda399194d1209c269f0e8cd8 /procps/renice.c
parent4185548984357df91311f30c8e43d95f33922576 (diff)
downloadbusybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
Diffstat (limited to 'procps/renice.c')
-rw-r--r--procps/renice.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/procps/renice.c b/procps/renice.c
index 6c5bb0e20..b2a9ed72e 100644
--- a/procps/renice.c
+++ b/procps/renice.c
@@ -29,7 +29,7 @@ void BUG_bad_PRIO_USER(void);
29int renice_main(int argc, char **argv); 29int renice_main(int argc, char **argv);
30int renice_main(int argc, char **argv) 30int renice_main(int argc, char **argv)
31{ 31{
32 static const char Xetpriority_msg[] = "%cetpriority"; 32 static const char Xetpriority_msg[] ALIGN1 = "%cetpriority";
33 33
34 int retval = EXIT_SUCCESS; 34 int retval = EXIT_SUCCESS;
35 int which = PRIO_PROCESS; /* Default 'which' value. */ 35 int which = PRIO_PROCESS; /* Default 'which' value. */
@@ -67,8 +67,9 @@ int renice_main(int argc, char **argv)
67 while ((arg = *++argv) != NULL) { 67 while ((arg = *++argv) != NULL) {
68 /* Check for a mode switch. */ 68 /* Check for a mode switch. */
69 if (arg[0] == '-' && arg[1]) { 69 if (arg[0] == '-' && arg[1]) {
70 static const char opts[] 70 static const char opts[] ALIGN1 = {
71 = { 'p', 'g', 'u', 0, PRIO_PROCESS, PRIO_PGRP, PRIO_USER }; 71 'p', 'g', 'u', 0, PRIO_PROCESS, PRIO_PGRP, PRIO_USER
72 };
72 const char *p = strchr(opts, arg[1]); 73 const char *p = strchr(opts, arg[1]);
73 if (p) { 74 if (p) {
74 which = p[4]; 75 which = p[4];