base64: remove some unused/redundant getopt code
authorBo Borgerson <gigabo@gmail.com>
Tue, 6 May 2008 01:58:28 +0000 (21:58 -0400)
committerJim Meyering <meyering@redhat.com>
Tue, 6 May 2008 06:19:28 +0000 (08:19 +0200)
* 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>
src/base64.c

index 983b8cb..4a7e51f 100644 (file)
@@ -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':