X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=parse.c;h=7dc5fcc869ff05b21accb95257bb4fa473d188f3;hp=4c6a9ea984ee28475c0f47eeabec549d68e7c55e;hb=26eca2db3ef6e92ff1022099cb89fc8ce88ee15d;hpb=b347f9daece7d65a6e596cd3bd0ef3602e40b059 diff --git a/parse.c b/parse.c index 4c6a9ea9..7dc5fcc8 100644 --- a/parse.c +++ b/parse.c @@ -277,6 +277,7 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data, } case FIO_OPT_STR_VAL_TIME: is_time = 1; + case FIO_OPT_INT: case FIO_OPT_STR_VAL: case FIO_OPT_STR_VAL_INT: { fio_opt_str_val_fn *fn = o->cb; @@ -303,7 +304,8 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data, if (fn) ret = fn(data, &ull); else { - if (o->type == FIO_OPT_STR_VAL_INT) { + if (o->type == FIO_OPT_STR_VAL_INT || + o->type == FIO_OPT_INT) { if (first) val_store(ilp, ull, o->off1, data); if (!more && o->off2) @@ -373,7 +375,6 @@ static int __handle_option(struct fio_option *o, const char *ptr, void *data, break; } - case FIO_OPT_INT: case FIO_OPT_BOOL: { fio_opt_int_fn *fn = o->cb;