summaryrefslogtreecommitdiffhomepage
path: root/coreutils
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-12 00:53:06 +0000
committerMatt Kraai <kraai@debian.org>2000-07-12 00:53:06 +0000
commite714bce003a1b0e2c49e58fe14af86abc8b31f23 (patch)
tree83dc60ba6291ab2839a8eeca47076582578841c7 /coreutils
parent3ecbe9f4dca998d224760f537dc1c3fd7269893b (diff)
Use global applet_name instead of local versions.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cut.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c
index a8a9d7fd1..820074e60 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -71,7 +71,6 @@ int num_args;
int mode; /* 0 = dump stdin to stdout, 1=-f, 2=-c */
char delim = '\t'; /* default delimiting character */
FILE *fd;
-char *name;
char line[BUFSIZ];
int exit_status;
int option = 0; /* for -s option */
@@ -91,7 +90,7 @@ void warn(int warn_number, char *option)
"%s: Cannot open %s\n"
};
- fprintf(stderr, warn_msg[warn_number], name, option);
+ fprintf(stderr, warn_msg[warn_number], applet_name, option);
exit_status = warn_number + 1;
}
@@ -107,7 +106,7 @@ void cuterror(int err)
"%s: MAX_ARGS exceeded\n"
};
- fprintf(stderr, err_mes[err - 101], name);
+ fprintf(stderr, err_mes[err - 101], applet_name);
exit(err);
}
@@ -213,8 +212,6 @@ int cut_main(int argc, char **argv)
int i = 1;
int numberFilenames = 0;
- name = argv[0];
-
if (argc == 1 || strcmp(argv[1], dash_dash_help)==0)
usage( "cut [OPTION]... [FILE]...\n"
#ifndef BB_FEATURE_TRIVIAL_HELP