projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2224ef8
)
base64: remove some unused/redundant getopt code
author
Bo Borgerson
<gigabo@gmail.com>
Tue, 6 May 2008 01:58:28 +0000
(21:58 -0400)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/base64.c
b/src/base64.c
index
983b8cb
..
4a7e51f
100644
(file)
--- 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, "d
q
iw:", long_options, NULL)) != -1)
+ while ((opt = getopt_long (argc, argv, "diw:", long_options, NULL)) != -1)
switch (opt)
{
case 'd':