X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=parse.c;h=4d4fdddeae573f12e10270291785401029399d53;hp=fd5605f0c33f2bdb56dea64012b658d7d7c82b40;hb=1c9f076109b15af6e03f92d9b80034d034d5b6cd;hpb=9e55f2c7debac6683b1c41ce1f816ed868396798 diff --git a/parse.c b/parse.c index fd5605f0..4d4fddde 100644 --- a/parse.c +++ b/parse.c @@ -135,6 +135,7 @@ static unsigned long long get_mult_time(const char *str, int len, const char *p = str; char *c; unsigned long long mult = 1; + int i; /* * Go forward until we hit a non-digit, or +/- sign @@ -153,7 +154,7 @@ static unsigned long long get_mult_time(const char *str, int len, } c = strdup(p); - for (int i = 0; i < strlen(c); i++) + for (i = 0; i < strlen(c); i++) c[i] = tolower(c[i]); if (!strncmp("us", c, 2) || !strncmp("usec", c, 4))