diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-14 23:28:47 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-14 23:28:47 +0000 |
commit | 3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (patch) | |
tree | 6a217bf17e7c00e98a47f657015535f21b53cedd /procps/free.c | |
parent | 464c5de00d3dfb5f01e866f703d95bbb2bb9443c (diff) | |
download | busybox-w32-3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217.tar.gz busybox-w32-3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217.tar.bz2 busybox-w32-3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217.zip |
Don't use strings directly in calls to usage(). This is in preparation
for their extraction to a separate file.
Diffstat (limited to 'procps/free.c')
-rw-r--r-- | procps/free.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/procps/free.c b/procps/free.c index 997430b39..7c9d7f10a 100644 --- a/procps/free.c +++ b/procps/free.c | |||
@@ -25,6 +25,12 @@ | |||
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <errno.h> | 26 | #include <errno.h> |
27 | 27 | ||
28 | const 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 | ||
29 | extern int free_main(int argc, char **argv) | 35 | extern 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"); |