mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +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")) {
|
||||
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 "
|
||||
|
Reference in New Issue
Block a user