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/console-tools/setlogcons.c

    r1765 r2725  
    77 * Based on setlogcons (kbd-1.12) by Andries E. Brouwer
    88 *
    9  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
     9 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    1010 */
    1111
    1212#include "libbb.h"
    1313
    14 int setlogcons_main(int argc, char **argv);
    15 int setlogcons_main(int argc, char **argv)
     14int setlogcons_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     15int setlogcons_main(int argc UNUSED_PARAM, char **argv)
    1616{
    1717    struct {
    1818        char fn;
    1919        char subarg;
    20     } arg;
     20    } arg = { 11, /* redirect kernel messages */
     21              0   /* to specified console (current as default) */
     22            };
    2123
    22     arg.fn = 11;    /* redirect kernel messages */
    23     arg.subarg = 0; /* to specified console (current as default) */
    24 
    25     if (argc == 2)
    26         arg.subarg = xatoul_range(argv[1], 0, 63);
     24    if (argv[1])
     25        arg.subarg = xatou_range(argv[1], 0, 63);
    2726
    2827    xioctl(xopen(VC_1, O_RDONLY), TIOCLINUX, &arg);
    2928
    30     return 0;
     29    return EXIT_SUCCESS;
    3130}
Note: See TracChangeset for help on using the changeset viewer.