]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix usual isdigit() warning on solaris
authorWilly Tarreau <w@1wt.eu>
Mon, 1 Apr 2013 18:37:42 +0000 (20:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Apr 2013 18:45:46 +0000 (20:45 +0200)
src/standard.c: In function `str2sa_range':
src/standard.c:734: warning: subscript has type `char'

This one was recently introduced by commit c120c8d3.

src/standard.c

index 7a6ca1129e4d42e22ba5902234f41b04fa896e7d..37b3c436e3fb0f21ced5d4158c98dda1cbcf8291 100644 (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';