Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/procps/free.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/procps/free.c
r821 r1770 5 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 6 6 * 7 * Licensed under the GPL v 2 or later, see the file LICENSE in this tarball.7 * Licensed under the GPL version 2, see the file LICENSE in this tarball. 8 8 */ 9 9 10 10 /* getopt not needed */ 11 11 12 #include "busybox.h" 13 #include <stdio.h> 14 #include <errno.h> 15 #include <stdlib.h> 12 #include "libbb.h" 16 13 14 int free_main(int argc, char **argv); 17 15 int free_main(int argc, char **argv) 18 16 { … … 21 19 22 20 /* Kernels prior to 2.4.x will return info.mem_unit==0, so cope... */ 23 if (info.mem_unit ==0) {21 if (info.mem_unit == 0) { 24 22 info.mem_unit=1; 25 23 } 26 if ( info.mem_unit == 1) {24 if (info.mem_unit == 1) { 27 25 info.mem_unit=1024; 28 26 … … 49 47 } 50 48 51 if (argc > 1 && * *(argv + 1)== '-')49 if (argc > 1 && *argv[1] == '-') 52 50 bb_show_usage(); 53 51 … … 69 67 return EXIT_SUCCESS; 70 68 } 71
Note:
See TracChangeset
for help on using the changeset viewer.