cast arg to isdigit to int
authorBen Greear <greearb@candelatech.com>
Fri, 30 Jul 2010 22:11:54 +0000 (15:11 -0700)
committerBen Greear <greearb@candelatech.com>
Fri, 30 Jul 2010 22:11:54 +0000 (15:11 -0700)
Looks like it might silence a warning on Netware build.

Signed-off-by: Ben Greear <greearb@candelatech.com>
ares_options.c

index 26dc678..461784b 100644 (file)
@@ -178,7 +178,7 @@ int ares_set_servers_csv(ares_channel channel,
       while (pp > start_host) {
         if (*pp == ':')
           break; /* yes */
-        if (!isdigit(*pp)) {
+        if (!isdigit((int)(*pp))) {
           /* Found end of digits before we found :, so wasn't a port */
           pp = ptr;
           break;