summaryrefslogtreecommitdiff
path: root/lib/command_match.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 /lib/command_match.c
parentc8ec87df6e2bc4de3988bd540d369d3589bdeab6 (diff)
parent31140be1084a5df22d5ca4a90efeaf46a2298f93 (diff)
Merge pull request #4790 from opensourcerouting/ctype-cast
*: fix ctype casts
Diffstat (limited to 'lib/command_match.c')
-rw-r--r--lib/command_match.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/command_match.c b/lib/command_match.c
index 9456e1585a..26d763849d 100644
--- a/lib/command_match.c
+++ b/lib/command_match.c
@@ -714,7 +714,7 @@ static enum match_type match_ipv4(const char *str)
dots++;
break;
}
- if (!isdigit((int)*str))
+ if (!isdigit((unsigned char)*str))
return no_match;
str++;
@@ -765,7 +765,7 @@ static enum match_type match_ipv4_prefix(const char *str)
break;
}
- if (!isdigit((int)*str))
+ if (!isdigit((unsigned char)*str))
return no_match;
str++;
@@ -797,7 +797,7 @@ static enum match_type match_ipv4_prefix(const char *str)
sp = str;
while (*str != '\0') {
- if (!isdigit((int)*str))
+ if (!isdigit((unsigned char)*str))
return no_match;
str++;