diff options
author | Bo Borgerson <gigabo@gmail.com> | 2008-05-05 21:58:28 -0400 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-05-06 08:19:28 +0200 |
commit | 4d3bf408b9a308a4702ac93546446927c12cc101 (patch) | |
tree | c6f535878d7b96d060f286bb2847ff5ca27fcc8b | |
parent | 2224ef83fe7c82b2643a62bc7f98a2f589660ce8 (diff) | |
download | coreutils-4d3bf408b9a308a4702ac93546446927c12cc101.tar.xz |
base64: remove some unused/redundant getopt code
* src/base64.c (struct option long_option): Remove redundant help/version
option items.
(main): Remove unused 'q' from short options.
Signed-off-by: Bo Borgerson <gigabo@gmail.com>
-rw-r--r-- | src/base64.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/base64.c b/src/base64.c index 983b8cb88..4a7e51fc6 100644 --- a/src/base64.c +++ b/src/base64.c @@ -44,8 +44,6 @@ static const struct option long_options[] = { {"decode", no_argument, 0, 'd'}, {"wrap", required_argument, 0, 'w'}, {"ignore-garbage", no_argument, 0, 'i'}, - {"help", no_argument, 0, GETOPT_HELP_CHAR}, - {"version", no_argument, 0, GETOPT_VERSION_CHAR}, {GETOPT_HELP_OPTION_DECL}, {GETOPT_VERSION_OPTION_DECL}, @@ -257,7 +255,7 @@ main (int argc, char **argv) atexit (close_stdout); - while ((opt = getopt_long (argc, argv, "dqiw:", long_options, NULL)) != -1) + while ((opt = getopt_long (argc, argv, "diw:", long_options, NULL)) != -1) switch (opt) { case 'd': |