Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/miscutils/readahead.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 13  Line 13 
13  #include "libbb.h"  #include "libbb.h"
14    
15  int readahead_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;  int readahead_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16  int readahead_main(int argc, char **argv)  int readahead_main(int argc UNUSED_PARAM, char **argv)
17  {  {
18   int retval = EXIT_SUCCESS;   int retval = EXIT_SUCCESS;
19    
20   if (argc == 1) bb_show_usage();   if (!argv[1]) {
21     bb_show_usage();
22     }
23    
24   while (*++argv) {   while (*++argv) {
25   int fd = open_or_warn(*argv, O_RDONLY);   int fd = open_or_warn(*argv, O_RDONLY);

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