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.
This commit is contained in:
Willy Tarreau 2013-04-01 20:37:42 +02:00
parent 49f74d0ed9
commit a39d19905e

View File

@ -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';