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 /mkfs_minix.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 'mkfs_minix.c')
-rw-r--r-- | mkfs_minix.c | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/mkfs_minix.c b/mkfs_minix.c index e4dedaf82..9ae4b569c 100644 --- a/mkfs_minix.c +++ b/mkfs_minix.c | |||
@@ -267,27 +267,23 @@ static volatile void die(char *str) | |||
267 | exit(8); | 267 | exit(8); |
268 | } | 268 | } |
269 | 269 | ||
270 | const char mkfs_minix_usage[] = | ||
271 | "mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]\n" | ||
272 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
273 | "\nMake a MINIX filesystem.\n\n" | ||
274 | "Options:\n" | ||
275 | "\t-c\t\tCheck the device for bad blocks\n" | ||
276 | "\t-n [14|30]\tSpecify the maximum length of filenames\n" | ||
277 | "\t-i INODES\tSpecify the number of inodes for the filesystem\n" | ||
278 | "\t-l FILENAME\tRead the bad blocks list from FILENAME\n" | ||
279 | "\t-v\t\tMake a Minix version 2 filesystem\n\n" | ||
280 | #endif | ||
281 | ; | ||
282 | |||
270 | static volatile void show_usage() __attribute__ ((noreturn)); | 283 | static volatile void show_usage() __attribute__ ((noreturn)); |
271 | static volatile void show_usage() | 284 | static volatile void show_usage() |
272 | { | 285 | { |
273 | fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n", | 286 | usage(mkfs_minix_usage); |
274 | BB_VER, BB_BT); | ||
275 | fprintf(stderr, | ||
276 | "Usage: %s [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]\n", | ||
277 | applet_name); | ||
278 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
279 | fprintf(stderr, "\nMake a MINIX filesystem.\n\n"); | ||
280 | fprintf(stderr, "Options:\n"); | ||
281 | fprintf(stderr, "\t-c\t\tCheck the device for bad blocks\n"); | ||
282 | fprintf(stderr, | ||
283 | "\t-n [14|30]\tSpecify the maximum length of filenames\n"); | ||
284 | fprintf(stderr, | ||
285 | "\t-i INODES\tSpecify the number of inodes for the filesystem\n"); | ||
286 | fprintf(stderr, | ||
287 | "\t-l FILENAME\tRead the bad blocks list from FILENAME\n"); | ||
288 | fprintf(stderr, "\t-v\t\tMake a Minix version 2 filesystem\n\n"); | ||
289 | #endif | ||
290 | exit(16); | ||
291 | } | 287 | } |
292 | 288 | ||
293 | /* | 289 | /* |