diff options
| author | F. Aragon <paco@voltanet.io> | 2018-09-12 12:25:27 +0200 |
|---|---|---|
| committer | F. Aragon <paco@voltanet.io> | 2018-09-12 12:27:38 +0200 |
| commit | c683bd446c59dc09d4b19eb47718b014c433d900 (patch) | |
| tree | d5f3da3a4390fbbc45ac9f9e170fed0ba2d170b7 /lib/grammar_sandbox.c | |
| parent | 88f47ef36536a040b30652bc22c253e7c5bc1c2e (diff) | |
lib vtysh zebra: variable shadowing fixes
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'lib/grammar_sandbox.c')
| -rw-r--r-- | lib/grammar_sandbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c index ef03e85217..0d6200b006 100644 --- a/lib/grammar_sandbox.c +++ b/lib/grammar_sandbox.c @@ -315,7 +315,7 @@ static void cmd_graph_permute(struct list *out, struct graph_node **stack, struct graph_node *gn = stack[stackpos]; struct cmd_token *tok = gn->data; char *appendp = cmd + strlen(cmd); - size_t i, j; + size_t j; if (tok->type < SPECIAL_TKN) { sprintf(appendp, "%s ", tok->text); @@ -332,7 +332,7 @@ static void cmd_graph_permute(struct list *out, struct graph_node **stack, if (++stackpos == CMD_ARGC_MAX) return; - for (i = 0; i < vector_active(gn->to); i++) { + for (size_t i = 0; i < vector_active(gn->to); i++) { struct graph_node *gnext = vector_slot(gn->to, i); for (j = 0; j < stackpos; j++) if (stack[j] == gnext) |
