From a7db3b88bd0a9cc60e3e6b9c2ab03df2b510f3dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Sun, 12 Jun 2016 07:33:11 +0200 Subject: No need for getopt_long to return the index for long option parameters --- src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index ee2cdc1..18ee598 100644 --- a/src/main.c +++ b/src/main.c @@ -612,9 +612,7 @@ main (int argc, char *argv[]) myargv = argv; while (1) { - int option_index = 0; - - c = getopt_long (argc, argv, ratpoison_opts, ratpoison_longopts, &option_index); + c = getopt_long (argc, argv, ratpoison_opts, ratpoison_longopts, NULL); if (c == -1) break; switch (c) -- cgit v1.2.3