summaryrefslogtreecommitdiffstats
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-02-02 18:11:03 +0100
committerRenato Westphal <renato@opensourcerouting.org>2018-02-02 19:31:20 +0100
commita7ce0ad1dacc62d01ec11422586b211c5239e890 (patch)
tree402dc4b6d88647cd14edf5c5a93489491ad0a056 /lib/command_graph.c
parent*: silence '-Wmaybe-uninitialized' warnings on NetBSD (diff)
downloadfrr-a7ce0ad1dacc62d01ec11422586b211c5239e890.tar.xz
frr-a7ce0ad1dacc62d01ec11422586b211c5239e890.zip
*: silence '-Wchar-subscripts' warnings on NetBSD
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/command_graph.c')
-rw-r--r--lib/command_graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_graph.c b/lib/command_graph.c
index fce11a70c..f00b12653 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -97,7 +97,7 @@ void cmd_token_varname_set(struct cmd_token *token, const char *varname)
token->varname[i] = '_';
break;
default:
- token->varname[i] = tolower(varname[i]);
+ token->varname[i] = tolower((int)varname[i]);
}
token->varname[len] = '\0';
}