summaryrefslogtreecommitdiff
path: root/util-linux/fsck_minix.c
diff options
context:
space:
mode:
authorMatt Kraai2000-07-12 15:38:49 +0000
committerMatt Kraai2000-07-12 15:38:49 +0000
commite58771e73c0d8589a458ede4088f5ba70eff917b (patch)
tree46d579ac4ec39719ba3b8d18bbc1c359cc9939c5 /util-linux/fsck_minix.c
parente714bce003a1b0e2c49e58fe14af86abc8b31f23 (diff)
downloadbusybox-e58771e73c0d8589a458ede4088f5ba70eff917b.zip
busybox-e58771e73c0d8589a458ede4088f5ba70eff917b.tar.gz
Use global applet_name instead of local versions.
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r--util-linux/fsck_minix.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 9533f40..685e0ee 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/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)