Merge branch 'master' of ssh://router/data/git/fio
[fio.git] / init.c
diff --git a/init.c b/init.c
index 194242439dc93b61b4126ce8a1a9fa3808b08980..2259edf5afee0b3396b89f245ae0c1223afe0726 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1223,7 +1223,7 @@ static int parse_cmd_line(int argc, char *argv[])
        struct thread_data *td = NULL;
        int c, ini_idx = 0, lidx, ret, dont_add_job = 0;
 
-       while ((c = getopt_long(argc, argv, "", long_options, &lidx)) != -1) {
+       while ((c = getopt_long_only(argc, argv, "", long_options, &lidx)) != -1) {
                switch (c) {
                case 't':
                        def_timeout = atoi(optarg);