Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/procps/renice.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/procps/renice.c
r1765 r2725 5 5 * Copyright (C) 2005 Manuel Novoa III <mjn3@codepoet.org> 6 6 * 7 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 8 */ 9 9 … … 27 27 void BUG_bad_PRIO_USER(void); 28 28 29 int renice_main(int argc, char **argv) ;30 int renice_main(int argc , char **argv)29 int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 30 int renice_main(int argc UNUSED_PARAM, char **argv) 31 31 { 32 32 static const char Xetpriority_msg[] ALIGN1 = "%cetpriority"; 33 33 34 34 int retval = EXIT_SUCCESS; 35 int which = PRIO_PROCESS; 35 int which = PRIO_PROCESS; /* Default 'which' value. */ 36 36 int use_relative = 0; 37 37 int adjustment, new_priority; … … 58 58 } 59 59 60 if (!arg) { 60 if (!arg) { /* No args? Then show usage. */ 61 61 bb_show_usage(); 62 62 } … … 85 85 p = getpwnam(arg); 86 86 if (!p) { 87 bb_error_msg("unknown user :%s", arg);87 bb_error_msg("unknown user %s", arg); 88 88 goto HAD_ERROR; 89 89 } … … 92 92 who = bb_strtou(arg, NULL, 10); 93 93 if (errno) { 94 bb_error_msg(" bad value: %s", arg);94 bb_error_msg("invalid number '%s'", arg); 95 95 goto HAD_ERROR; 96 96 } … … 101 101 int old_priority; 102 102 103 errno = 0; 103 errno = 0; /* Needed for getpriority error detection. */ 104 104 old_priority = getpriority(which, who); 105 105 if (errno) {
Note:
See TracChangeset
for help on using the changeset viewer.