diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-08 16:21:05 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-08 16:21:05 +0200 |
commit | ed1e38537b58e04eec2d5f519ebcb74b85716c83 (patch) | |
tree | 8c3e1c23d2e773ae3cf8ed94e3f7dbe7c7e0f1a5 | |
parent | de6c4a0903325d14fed89de6cef2572dc141c2fe (diff) | |
download | abrt-ed1e38537b58e04eec2d5f519ebcb74b85716c83.tar.gz abrt-ed1e38537b58e04eec2d5f519ebcb74b85716c83.tar.xz abrt-ed1e38537b58e04eec2d5f519ebcb74b85716c83.zip |
trivial: remove unused option_index's
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r-- | lib/utils/parse_options.c | 3 | ||||
-rw-r--r-- | src/cli/CLI.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/utils/parse_options.c b/lib/utils/parse_options.c index af457f3e..5f4fbd63 100644 --- a/lib/utils/parse_options.c +++ b/lib/utils/parse_options.c @@ -107,10 +107,9 @@ void parse_opts(int argc, char **argv, const struct options *opt, longopts[ii].val = 0; */ - int option_index = 0; while (1) { - int c = getopt_long(argc, argv, shortopts->buf, longopts, &option_index); + int c = getopt_long(argc, argv, shortopts->buf, longopts, NULL); if (c == -1) break; diff --git a/src/cli/CLI.cpp b/src/cli/CLI.cpp index b9c0397a..d4bb333d 100644 --- a/src/cli/CLI.cpp +++ b/src/cli/CLI.cpp @@ -282,10 +282,9 @@ int main(int argc, char** argv) while (1) { - int option_index; /* Do not use colons, arguments are handled after parsing all options. */ int c = getopt_long_only(argc, argv, "?Vrdlfyib", - longopts, &option_index); + longopts, NULL); #define SET_OP(newop) \ if (op != -1 && op != newop) \ |