mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 05:47:55 +00:00
tests: Cleanup islower() warning.
NetBSD's gcc complains if islower()'s argument is an unadorned char. This provides an appropriate cast.
This commit is contained in:
parent
b9b0ce6111
commit
bc5ef83d2f
@ -501,7 +501,8 @@ main(int argc, char *argv[])
|
||||
|
||||
if (!strcmp(token, "0")) {
|
||||
lan = NULL;
|
||||
} else if (strlen(token) == 1 && islower(*token)) {
|
||||
} else if (strlen(token) == 1
|
||||
&& islower((unsigned char)*token)) {
|
||||
lan = tc->lans[*token - 'a'];
|
||||
} else {
|
||||
err("%s is not a valid LAN name "
|
||||
|
Loading…
x
Reference in New Issue
Block a user