bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] base64: remove some unused/redundant getopt code


From: Bo Borgerson
Subject: [PATCH] base64: remove some unused/redundant getopt code
Date: Mon, 05 May 2008 22:09:43 -0400
User-agent: Thunderbird 2.0.0.12 (X11/20080227)

Hi,

I noticed these when I was poking around in base64 recently.  Looks like
they're vestigial.

Bo
>From 29288df82cd764b384bcd6535925c82ffca8ffc6 Mon Sep 17 00:00:00 2001
From: Bo Borgerson <address@hidden>
Date: Mon, 5 May 2008 21:58:28 -0400
Subject: [PATCH] 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 <address@hidden>
---
 src/base64.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/base64.c b/src/base64.c
index 983b8cb..4a7e51f 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':
-- 
1.5.4.3


reply via email to

[Prev in Thread] Current Thread [Next in Thread]