diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-12 19:38:49 +0400 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-12 19:38:49 +0400 |
commit | e58771e73c0d8589a458ede4088f5ba70eff917b (patch) | |
tree | 46d579ac4ec39719ba3b8d18bbc1c359cc9939c5 /fsck_minix.c | |
parent | e714bce003a1b0e2c49e58fe14af86abc8b31f23 (diff) |
Use global applet_name instead of local versions.
Diffstat (limited to 'fsck_minix.c')
-rw-r--r-- | fsck_minix.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fsck_minix.c b/fsck_minix.c index 9533f40db..685e0ee6c 100644 --- a/fsck_minix.c +++ b/fsck_minix.c @@ -219,7 +219,6 @@ struct minix_dir_entry { #define BITS_PER_BLOCK (BLOCK_SIZE<<3) -static char *program_name = "fsck.minix"; static char *program_version = "1.2 - 11/11/96"; static char *device_name = NULL; static int IN; @@ -293,7 +292,7 @@ static void show_usage(void) { fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n", BB_VER, BB_BT); - fprintf(stderr, "Usage: %s [-larvsmf] /dev/name\n", program_name); + fprintf(stderr, "Usage: %s [-larvsmf] /dev/name\n", applet_name); #ifndef BB_FEATURE_TRIVIAL_HELP fprintf(stderr, "\nPerforms a consistency check for MINIX filesystems.\n\n"); @@ -312,7 +311,7 @@ static void show_usage(void) static void die(const char *str) { - fprintf(stderr, "%s: %s\n", program_name, str); + fprintf(stderr, "%s: %s\n", applet_name, str); leave(8); } @@ -1367,8 +1366,6 @@ extern int fsck_minix_main(int argc, char **argv) * that automagically, so we can save a few bytes */ //atexit(free_name_list); - if (argc && *argv) - program_name = *argv; if (INODE_SIZE * MINIX_INODES_PER_BLOCK != BLOCK_SIZE) die("bad inode size"); #ifdef HAVE_MINIX2 @@ -1432,7 +1429,7 @@ extern int fsck_minix_main(int argc, char **argv) * flags and whether or not the -f switch was specified on the * command line. */ - printf("%s, %s\n", program_name, program_version); + printf("%s, %s\n", applet_name, program_version); if (!(Super.s_state & MINIX_ERROR_FS) && (Super.s_state & MINIX_VALID_FS) && !force) { if (repair) |