summaryrefslogtreecommitdiffstats
path: root/src/cli/CLI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/CLI.cpp')
-rw-r--r--src/cli/CLI.cpp3
1 files changed, 1 insertions, 2 deletions
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) \