Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/miscutils/runlevel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 11  Line 11 
11   *   *
12   * initially busyboxified by Bernhard Reutner-Fischer   * initially busyboxified by Bernhard Reutner-Fischer
13   */   */
   
 #include <utmp.h>  
14  #include "libbb.h"  #include "libbb.h"
15    #include <utmp.h>
16    
17  int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;  int runlevel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
18  int runlevel_main(int argc, char **argv)  int runlevel_main(int argc UNUSED_PARAM, char **argv)
19  {  {
20   struct utmp *ut;   struct utmp *ut;
21   char prev;   char prev;
22    
23   if (argc > 1) utmpname(argv[1]);   if (argv[1]) utmpname(argv[1]);
24    
25   setutent();   setutent();
26   while ((ut = getutent()) != NULL) {   while ((ut = getutent()) != NULL) {

Legend:
Removed from v.983  
changed lines
  Added in v.984