aboutsummaryrefslogtreecommitdiff
path: root/free.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 23:28:47 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 23:28:47 +0000
commit3ab1d8193e335afa74e86a8d8e628158d7e503b9 (patch)
tree6a217bf17e7c00e98a47f657015535f21b53cedd /free.c
parent28611675ac2c9073639562f4e4477f8e81d01845 (diff)
downloadbusybox-w32-3ab1d8193e335afa74e86a8d8e628158d7e503b9.tar.gz
busybox-w32-3ab1d8193e335afa74e86a8d8e628158d7e503b9.tar.bz2
busybox-w32-3ab1d8193e335afa74e86a8d8e628158d7e503b9.zip
Don't use strings directly in calls to usage(). This is in preparation
for their extraction to a separate file. git-svn-id: svn://busybox.net/trunk/busybox@863 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'free.c')
-rw-r--r--free.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/free.c b/free.c
index 997430b39..7c9d7f10a 100644
--- a/free.c
+++ b/free.c
@@ -25,6 +25,12 @@
25#include <stdio.h> 25#include <stdio.h>
26#include <errno.h> 26#include <errno.h>
27 27
28const char free_usage[] =
29 "free\n"
30#ifndef BB_FEATURE_TRIVIAL_HELP
31 "\nDisplays the amount of free and used system memory\n"
32#endif
33 ;
28 34
29extern int free_main(int argc, char **argv) 35extern int free_main(int argc, char **argv)
30{ 36{
@@ -53,14 +59,8 @@ extern int free_main(int argc, char **argv)
53 info.sharedram*=info.mem_unit; 59 info.sharedram*=info.mem_unit;
54 info.bufferram*=info.mem_unit; 60 info.bufferram*=info.mem_unit;
55 } 61 }
56 if (argc > 1 && **(argv + 1) == '-') { 62 if (argc > 1 && **(argv + 1) == '-')
57 usage("free\n" 63 usage(free_usage);
58#ifndef BB_FEATURE_TRIVIAL_HELP
59 "\nDisplays the amount of free and used system memory\n"
60#endif
61 );
62 }
63
64 64
65 printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free", 65 printf("%6s%13s%13s%13s%13s%13s\n", "", "total", "used", "free",
66 "shared", "buffers"); 66 "shared", "buffers");