From bc5ef83d2f042b1a1336d38e32d4893e47c7afcc Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 25 Aug 2009 16:33:16 -0700 Subject: [PATCH] tests: Cleanup islower() warning. NetBSD's gcc complains if islower()'s argument is an unadorned char. This provides an appropriate cast. --- tests/test-stp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test-stp.c b/tests/test-stp.c index c2a58377..ce9decc8 100644 --- a/tests/test-stp.c +++ b/tests/test-stp.c @@ -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 " -- 2.30.2