Counter 'i' is already used by the outer while loop. Re-declaring the
varialbe would not be a problem unless we had also the print below
that expects to use the variable from the outer while loop.
Rename the inner variable to avoid conflict.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
parse_opts(parser_data[i], ow_path, sizeof(ow_path), &offset);
while (1) {
- int fail, i;
+ int fail, j;
char *tmp2;
pr_info("Reading data for entry %s with offset of %.2f\n",
/* Skip leading white space */
tmp2 = tmp;
- for (i = 0; i < ret && *tmp2 == ' '; i++)
+ for (j = 0; j < ret && *tmp2 == ' '; j++)
tmp2++;
fail = !strncmp(tmp2, "85", 2);