aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-24 15:40:16 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-24 15:40:16 +0000
commit219d14d514ca4d31b4319af14e3a64b66fe2c233 (patch)
treea74e8ce7604ff932a3990de3065c167392e4b082 /procps
parent644849a3aa0c834a942fb7777ec449d8098bcfc9 (diff)
downloadbusybox-w32-219d14d514ca4d31b4319af14e3a64b66fe2c233.tar.gz
busybox-w32-219d14d514ca4d31b4319af14e3a64b66fe2c233.tar.bz2
busybox-w32-219d14d514ca4d31b4319af14e3a64b66fe2c233.zip
random style fixes (extra spaces deleted)
Diffstat (limited to 'procps')
-rw-r--r--procps/free.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/procps/free.c b/procps/free.c
index 860f57347..2b205d0c7 100644
--- a/procps/free.c
+++ b/procps/free.c
@@ -18,10 +18,10 @@ int free_main(int argc, char **argv)
18 sysinfo(&info); 18 sysinfo(&info);
19 19
20 /* Kernels prior to 2.4.x will return info.mem_unit==0, so cope... */ 20 /* Kernels prior to 2.4.x will return info.mem_unit==0, so cope... */
21 if (info.mem_unit==0) { 21 if (info.mem_unit == 0) {
22 info.mem_unit=1; 22 info.mem_unit=1;
23 } 23 }
24 if ( info.mem_unit == 1 ) { 24 if (info.mem_unit == 1) {
25 info.mem_unit=1024; 25 info.mem_unit=1024;
26 26
27 /* TODO: Make all this stuff not overflow when mem >= 4 Gib */ 27 /* TODO: Make all this stuff not overflow when mem >= 4 Gib */
@@ -46,7 +46,7 @@ int free_main(int argc, char **argv)
46 info.bufferram*=info.mem_unit; 46 info.bufferram*=info.mem_unit;
47 } 47 }
48 48
49 if (argc > 1 && **(argv + 1) == '-') 49 if (argc > 1 && *argv[1] == '-')
50 bb_show_usage(); 50 bb_show_usage();
51 51
52 printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free", 52 printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free",
@@ -66,4 +66,3 @@ int free_main(int argc, char **argv)
66#endif 66#endif
67 return EXIT_SUCCESS; 67 return EXIT_SUCCESS;
68} 68}
69