diff options
author | algernon <algernon> | 2001-02-15 17:35:03 +0000 |
---|---|---|
committer | algernon <algernon> | 2001-02-15 17:35:03 +0000 |
commit | 4f1136a795945a583477e8e1450af83fd5fa510e (patch) | |
tree | 2fd16a31781c6b472930fb62ed9ed1b27dcfb4f0 | |
parent | cd3f715b19c1decb6bbd5ffccf854d40e15c6560 (diff) | |
download | ratpoison-4f1136a795945a583477e8e1450af83fd5fa510e.zip |
fixed a small warning
-rw-r--r-- | src/getopt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/getopt.c b/src/getopt.c index fc87ce6..84faa8b 100644 --- a/src/getopt.c +++ b/src/getopt.c @@ -690,6 +690,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) else { if (opterr) + { if (argv[optind - 1][1] == '-') /* --option */ fprintf (stderr, @@ -700,7 +701,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) fprintf (stderr, _("%s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); - + } nextchar += strlen (nextchar); optopt = pfound->val; |