Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/procps/free.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 12  Line 12 
12  #include "libbb.h"  #include "libbb.h"
13    
14  int free_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;  int free_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
15  int free_main(int argc, char **argv)  int free_main(int argc UNUSED_PARAM, char **argv)
16  {  {
17   struct sysinfo info;   struct sysinfo info;
18   sysinfo(&info);   sysinfo(&info);
# Line 46  int free_main(int argc, char **argv) Line 46  int free_main(int argc, char **argv)
46   info.bufferram*=info.mem_unit;   info.bufferram*=info.mem_unit;
47   }   }
48    
49   if (argc > 1 && *argv[1] == '-')   if (argv[1] && argv[1][0] == '-')
50   bb_show_usage();   bb_show_usage();
51    
52   printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free",   printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free",

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