diff options
author | FUJISHIMA Satsuki <sf@FreeBSD.org> | 2003-07-14 02:37:35 +0000 |
---|---|---|
committer | FUJISHIMA Satsuki <sf@FreeBSD.org> | 2003-07-14 02:37:35 +0000 |
commit | cfbbad11c967c68017361159bd04d46e52fd4d95 (patch) | |
tree | f179ea891d920e4c53ffe5557036aa2ebbed379f /x11-clocks/wmfishtime/files/patch-fishmon.c | |
parent | get rid of libgnugetopt dependency for -CURRENT, (diff) |
get rid of libgnugetopt dependency for -CURRENT,
use USE_GETOPT_LONG instead.
use getopt_long() instead of getopt_long_only().
Notes
Notes:
svn path=/head/; revision=84835
Diffstat (limited to '')
-rw-r--r-- | x11-clocks/wmfishtime/files/patch-fishmon.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/x11-clocks/wmfishtime/files/patch-fishmon.c b/x11-clocks/wmfishtime/files/patch-fishmon.c new file mode 100644 index 000000000000..f19ae9839eb0 --- /dev/null +++ b/x11-clocks/wmfishtime/files/patch-fishmon.c @@ -0,0 +1,42 @@ +--- fishmon.c.orig Sun May 27 05:53:09 2001 ++++ fishmon.c Mon Jul 7 04:01:52 2003 +@@ -1018,26 +1018,28 @@ + { + static int ch = 0; + static struct option long_opts[] = { +- { "h", no_argument, NULL, 1 }, +- { "help", no_argument, NULL, 1 }, +- { "v", no_argument, NULL, 2 }, +- { "version", no_argument, NULL, 2 }, +- { "c", no_argument, &enable_check_mail, 1 }, +- { "check-mail", no_argument, &enable_check_mail, 1 }, +- { "b", no_argument, &broken_wm, 1 }, +- { "broken", no_argument, &broken_wm, 1 }, ++ { "help", no_argument, NULL, 'h' }, ++ { "version", no_argument, NULL, 'v' }, ++ { "check-mail", no_argument, &enable_check_mail, 'c' }, ++ { "broken", no_argument, &broken_wm, 'b' }, + { 0, 0, 0, 0 } + }; + +- while ((ch = getopt_long_only(argc, argv, "", long_opts, NULL)) != -1) { ++ while ((ch = getopt_long(argc, argv, "hvcb", long_opts, NULL)) != -1) { + switch (ch) { +- case 1: ++ case 'h': + do_help(); + exit(0); + break; +- case 2: ++ case 'v': + do_version(); + exit(0); ++ break; ++ case 'c': ++ enable_check_mail = 1; ++ break; ++ case 'b': ++ broken_wm = 1; + break; + } + } |