X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=81674aa4b5f6425af0188b9542bdacb088bd442f;hp=2df509b24630b05c421c5152709701dfa41bcac9;hb=34e95e3b07f44da3bad86e8d5253f4ff71871221;hpb=0c7e37a04aa04ba22e812f8de7971fcef46b8191 diff --git a/init.c b/init.c index 2df509b2..81674aa4 100644 --- a/init.c +++ b/init.c @@ -750,7 +750,7 @@ int parse_jobs_ini(char *file, int stonewall_flag) continue; } if (!check_str_time(p, "timeout", &ull)) { - td->timeout = ul1; + td->timeout = ull; fgetpos(f, &off); continue; } @@ -1033,18 +1033,12 @@ static int parse_cmd_line(int argc, char *argv[]) { int c, idx = 1, ini_idx = 0; - while ((c = getopt(argc, argv, "t:o:f:lwvhm")) != EOF) { + while ((c = getopt(argc, argv, "t:o:lwvhm")) != EOF) { switch (c) { case 't': def_timeout = atoi(optarg); idx++; break; - case 'f': - ini_idx++; - ini_file = realloc(ini_file, ini_idx * sizeof(char *)); - ini_file[ini_idx - 1] = strdup(optarg); - idx++; - break; case 'l': write_lat_log = 1; idx++;