long ul1, ul2;
double uf;
char **cp = NULL;
- char *cp2;
int ret = 0, is_time = 0;
const struct value_pair *vp;
struct value_pair posval[PARSE_MAX_VP];
- int i, len, all_skipped = 1;
+ int i, all_skipped = 1;
dprint(FD_PARSE, "__handle_option=%s, type=%d, ptr=%s\n", o->name,
o->type, ptr);
break;
}
case FIO_OPT_FLOAT_LIST: {
+ char *cp2;
+
if (first) {
/*
** Initialize precision to 0 and zero out list
o->maxlen);
return 1;
}
- if (!str_to_float(ptr, &uf)){
+ if (!str_to_float(ptr, &uf)) {
log_err("not a floating point value: %s\n", ptr);
return 1;
}
*/
cp2 = strchr(ptr, '.');
if (cp2 != NULL) {
- len = 0;
+ int len = 0;
while (*++cp2 != '\0' && *cp2 >= '0' && *cp2 <= '9')
len++;