mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +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:
@@ -501,7 +501,8 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (!strcmp(token, "0")) {
|
if (!strcmp(token, "0")) {
|
||||||
lan = NULL;
|
lan = NULL;
|
||||||
} else if (strlen(token) == 1 && islower(*token)) {
|
} else if (strlen(token) == 1
|
||||||
|
&& islower((unsigned char)*token)) {
|
||||||
lan = tc->lans[*token - 'a'];
|
lan = tc->lans[*token - 'a'];
|
||||||
} else {
|
} else {
|
||||||
err("%s is not a valid LAN name "
|
err("%s is not a valid LAN name "
|
||||||
|
Reference in New Issue
Block a user