From: Willy Tarreau Date: Mon, 1 Apr 2013 18:37:42 +0000 (+0200) Subject: BUILD: fix usual isdigit() warning on solaris X-Git-Tag: v1.5-dev18~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a39d19905e63971b9545accd69a6ce7ac9e529e1;p=thirdparty%2Fhaproxy.git BUILD: fix usual isdigit() warning on solaris src/standard.c: In function `str2sa_range': src/standard.c:734: warning: subscript has type `char' This one was recently introduced by commit c120c8d3. --- diff --git a/src/standard.c b/src/standard.c index 7a6ca1129e..37b3c436e3 100644 --- a/src/standard.c +++ b/src/standard.c @@ -731,7 +731,7 @@ struct sockaddr_storage *str2sa_range(const char *str, int *low, int *high, char goto out; } - if (isdigit(*port1)) { /* single port or range */ + if (isdigit((int)(unsigned char)*port1)) { /* single port or range */ port2 = strchr(port1, '-'); if (port2) *port2++ = '\0';