Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/miscutils/last.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 35  Line 35 
35  #endif  #endif
36    
37  int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;  int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
38  int last_main(int argc, char **argv UNUSED_PARAM)  int last_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
39  {  {
40   struct utmp ut;   struct utmp ut;
41   int n, file = STDIN_FILENO;   int n, file = STDIN_FILENO;
# Line 56  int last_main(int argc, char **argv UNUS Line 56  int last_main(int argc, char **argv UNUS
56   TYPE_OLD_TIME /* OLD_TIME, 4 */   TYPE_OLD_TIME /* OLD_TIME, 4 */
57   };   };
58    
59   if (argc > 1) {   if (argv[1]) {
60   bb_show_usage();   bb_show_usage();
61   }   }
62   file = xopen(bb_path_wtmp_file, O_RDONLY);   file = xopen(bb_path_wtmp_file, O_RDONLY);

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