summaryrefslogtreecommitdiff
path: root/tests/lib/cli/test_commands.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2019-08-06 13:21:13 -0400
committerGitHub <noreply@github.com>2019-08-06 13:21:13 -0400
commit3c1c172f02ef13077fc6c1ffa980c1e3d2087263 (patch)
treef849ffd1f0f2361e6608385057b1d080ef29b493 /tests/lib/cli/test_commands.c
parentc8ec87df6e2bc4de3988bd540d369d3589bdeab6 (diff)
parent31140be1084a5df22d5ca4a90efeaf46a2298f93 (diff)
Merge pull request #4790 from opensourcerouting/ctype-cast
*: fix ctype casts
Diffstat (limited to 'tests/lib/cli/test_commands.c')
-rw-r--r--tests/lib/cli/test_commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/cli/test_commands.c b/tests/lib/cli/test_commands.c
index ba46bdcea9..bbdc8b238d 100644
--- a/tests/lib/cli/test_commands.c
+++ b/tests/lib/cli/test_commands.c
@@ -243,7 +243,8 @@ static void test_run(struct prng *prng, struct vty *vty, const char *cmd,
(test_buf[0] != '\0') ? ", " : "",
test_buf);
- if (isspace((int)test_str[strlen(test_str) - 1])) {
+ if (isspace((unsigned char)test_str[
+ strlen(test_str) - 1])) {
vector_set(vline, NULL);
appended_null = 1;
}