summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
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)