summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-06-12 07:33:11 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-06-12 08:11:58 +0200
commita7db3b88bd0a9cc60e3e6b9c2ab03df2b510f3dc (patch)
tree7f213d65e657938e46320b4ffe631c6480e17c18 /src/main.c
parent2281899438068271385e0ce152f119504a8f0ca8 (diff)
downloadratpoison-a7db3b88bd0a9cc60e3e6b9c2ab03df2b510f3dc.zip
No need for getopt_long to return the index for long option parameters
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
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)