2
0
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:
Justin Pettit 2009-08-25 16:33:16 -07:00
parent b9b0ce6111
commit bc5ef83d2f

View File

@ -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 "