summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-07-31 00:15:38 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-07-31 00:16:39 +0200
commitcef3a4c7aa584eee71da94c61fd65fd821bab65e (patch)
tree32f720b22595f7bf5f8b2c1f2288259923f4ca0e
parent8d3380497112f08bcdd1107124b045fd95a95dba (diff)
downloadc-ares-cef3a4c7aa584eee71da94c61fd65fd821bab65e.tar.gz
c-ares-cef3a4c7aa584eee71da94c61fd65fd821bab65e.tar.bz2
c-ares-cef3a4c7aa584eee71da94c61fd65fd821bab65e.zip
ares_set_servers_csv: use ISDIGIT
The IS*() set of macros are preferred to the regular is*() functions as they help us avoid the most common pitfalls.
-rw-r--r--ares_options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_options.c b/ares_options.c
index 461784b..66bf367 100644
--- a/ares_options.c
+++ b/ares_options.c
@@ -178,7 +178,7 @@ int ares_set_servers_csv(ares_channel channel,
while (pp > start_host) {
if (*pp == ':')
break; /* yes */
- if (!isdigit((int)(*pp))) {
+ if (!ISDIGIT(*pp)) {
/* Found end of digits before we found :, so wasn't a port */
pp = ptr;
break;