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/miscutils/runlevel.c

    r1765 r2725  
    11/* vi: set sw=4 ts=4: */
    22/*
    3  * runlevel Prints out the previous and the current runlevel.
     3 * Prints out the previous and the current runlevel.
    44 *
    5  * Version: @(#)runlevel  1.20  16-Apr-1997  MvS
     5 * Version: @(#)runlevel  1.20  16-Apr-1997  MvS
    66 *
    7  *      This file is part of the sysvinit suite,
    8  *      Copyright 1991-1997 Miquel van Smoorenburg.
     7 * This file is part of the sysvinit suite,
     8 * Copyright 1991-1997 Miquel van Smoorenburg.
    99 *
    10  * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
     10 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    1111 *
    12  * initially busyboxified by Bernhard Fischer
     12 * initially busyboxified by Bernhard Reutner-Fischer
    1313 */
     14#include "libbb.h"
     15#include <utmp.h>
    1416
    15 #include <utmp.h>
    16 #include "libbb.h"
    17 
    18 int runlevel_main(int argc, char **argv);
    19 int runlevel_main(int argc, char **argv)
     17int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     18int runlevel_main(int argc UNUSED_PARAM, char **argv)
    2019{
    2120    struct utmp *ut;
    2221    char prev;
    2322
    24     if (argc > 1) utmpname(argv[1]);
     23    if (argv[1]) utmpname(argv[1]);
    2524
    2625    setutent();
Note: See TracChangeset for help on using the changeset viewer.