parser: Get rid of global variable

fixes pvs-studio error 'V707 Giving short names to global variables
is considered to be bad practice. It is suggested to rename 'i' variable.

gorcunov@: Simply define it as local variable.

Signed-off-by: Martin Lindhe <martin-commit@ubique.se>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Martin Lindhe 2016-11-16 16:43:16 +01:00 committed by Cyrill Gorcunov
parent ec8b2081d3
commit 58f37c1736

View File

@ -58,7 +58,6 @@ extern int32_t abs_offset; /* ABSOLUTE segment offset */
static int is_comma_next(void); static int is_comma_next(void);
static int i;
static struct tokenval tokval; static struct tokenval tokval;
static int prefix_slot(int prefix) static int prefix_slot(int prefix)
@ -436,6 +435,7 @@ insn *parse_line(int pass, char *buffer, insn *result, ldfunc ldef)
int critical; int critical;
bool first; bool first;
bool recover; bool recover;
int i;
restart_parse: restart_parse:
first = true; first = true;