diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-06-12 07:33:11 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-06-12 08:11:58 +0200 |
commit | a7db3b88bd0a9cc60e3e6b9c2ab03df2b510f3dc (patch) | |
tree | 7f213d65e657938e46320b4ffe631c6480e17c18 /src | |
parent | 2281899438068271385e0ce152f119504a8f0ca8 (diff) | |
download | ratpoison-a7db3b88bd0a9cc60e3e6b9c2ab03df2b510f3dc.zip |
No need for getopt_long to return the index for long option parameters
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) |