Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/procps/renice.c


Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/procps/renice.c

    r1765 r2725  
    55 * Copyright (C) 2005  Manuel Novoa III  <mjn3@codepoet.org>
    66 *
    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.
    88 */
    99
     
    2727void BUG_bad_PRIO_USER(void);
    2828
    29 int renice_main(int argc, char **argv);
    30 int renice_main(int argc, char **argv)
     29int renice_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     30int renice_main(int argc UNUSED_PARAM, char **argv)
    3131{
    3232    static const char Xetpriority_msg[] ALIGN1 = "%cetpriority";
    3333
    3434    int retval = EXIT_SUCCESS;
    35     int which = PRIO_PROCESS;   /* Default 'which' value. */
     35    int which = PRIO_PROCESS;  /* Default 'which' value. */
    3636    int use_relative = 0;
    3737    int adjustment, new_priority;
     
    5858    }
    5959
    60     if (!arg) {             /* No args?  Then show usage. */
     60    if (!arg) {  /* No args?  Then show usage. */
    6161        bb_show_usage();
    6262    }
     
    8585            p = getpwnam(arg);
    8686            if (!p) {
    87                 bb_error_msg("unknown user: %s", arg);
     87                bb_error_msg("unknown user %s", arg);
    8888                goto HAD_ERROR;
    8989            }
     
    9292            who = bb_strtou(arg, NULL, 10);
    9393            if (errno) {
    94                 bb_error_msg("bad value: %s", arg);
     94                bb_error_msg("invalid number '%s'", arg);
    9595                goto HAD_ERROR;
    9696            }
     
    101101            int old_priority;
    102102
    103             errno = 0;  /* Needed for getpriority error detection. */
     103            errno = 0;  /* Needed for getpriority error detection. */
    104104            old_priority = getpriority(which, who);
    105105            if (errno) {
Note: See TracChangeset for help on using the changeset viewer.