summaryrefslogtreecommitdiffstats
path: root/lib/utils/parse_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/parse_options.c')
-rw-r--r--lib/utils/parse_options.c3
1 files changed, 1 insertions, 2 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;