diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 23:28:47 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-14 23:28:47 +0000 |
commit | 3ab1d8193e335afa74e86a8d8e628158d7e503b9 (patch) | |
tree | 6a217bf17e7c00e98a47f657015535f21b53cedd /coreutils/test.c | |
parent | 28611675ac2c9073639562f4e4477f8e81d01845 (diff) | |
download | busybox-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 'coreutils/test.c')
-rw-r--r-- | coreutils/test.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 175cb5d05..bf1622cde 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -178,6 +178,15 @@ static int test_eaccess(); | |||
178 | static int is_a_group_member(); | 178 | static int is_a_group_member(); |
179 | static void initialize_group_array(); | 179 | static void initialize_group_array(); |
180 | 180 | ||
181 | const char test_usage[] = | ||
182 | "test EXPRESSION\n" | ||
183 | "or [ EXPRESSION ]\n" | ||
184 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
185 | "\nChecks file types and compares values returning an exit\n" | ||
186 | "code determined by the value of EXPRESSION.\n" | ||
187 | #endif | ||
188 | ; | ||
189 | |||
181 | extern int | 190 | extern int |
182 | test_main(int argc, char** argv) | 191 | test_main(int argc, char** argv) |
183 | { | 192 | { |
@@ -188,15 +197,8 @@ test_main(int argc, char** argv) | |||
188 | fatalError("missing ]\n"); | 197 | fatalError("missing ]\n"); |
189 | argv[argc] = NULL; | 198 | argv[argc] = NULL; |
190 | } | 199 | } |
191 | if (strcmp(argv[1], dash_dash_help) == 0) { | 200 | if (strcmp(argv[1], dash_dash_help) == 0) |
192 | usage("test EXPRESSION\n" | 201 | usage(test_usage); |
193 | "or [ EXPRESSION ]\n" | ||
194 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
195 | "\nChecks file types and compares values returning an exit\n" | ||
196 | "code determined by the value of EXPRESSION.\n" | ||
197 | #endif | ||
198 | ); | ||
199 | } | ||
200 | 202 | ||
201 | /* Implement special cases from POSIX.2, section 4.62.4 */ | 203 | /* Implement special cases from POSIX.2, section 4.62.4 */ |
202 | switch (argc) { | 204 | switch (argc) { |