From ed1e38537b58e04eec2d5f519ebcb74b85716c83 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 8 Oct 2010 16:21:05 +0200 Subject: trivial: remove unused option_index's Signed-off-by: Denys Vlasenko --- src/cli/CLI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cli/CLI.cpp') 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) \ -- cgit