summaryrefslogtreecommitdiff
path: root/ares_search.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-18 03:42:06 +0000
committerYang Tse <yangsita@gmail.com>2006-10-18 03:42:06 +0000
commitdd3b42e1ac7536e6b5445292c298b89a7fb6c605 (patch)
tree4588498a79fc4485f9d59bdcd0f67caef5adfce6 /ares_search.c
parent2a7b004e49fb7c355dec0d299f9cd5c63c119ccd (diff)
downloadc-ares-dd3b42e1ac7536e6b5445292c298b89a7fb6c605.tar.gz
c-ares-dd3b42e1ac7536e6b5445292c298b89a7fb6c605.tar.bz2
c-ares-dd3b42e1ac7536e6b5445292c298b89a7fb6c605.zip
Replace is*() macros with our own IS*() ones.
Get rid of non ANSI/ISO isascii().
Diffstat (limited to 'ares_search.c')
-rw-r--r--ares_search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ares_search.c b/ares_search.c
index 099a7c7..b05b4a8 100644
--- a/ares_search.c
+++ b/ares_search.c
@@ -239,15 +239,15 @@ static int single_domain(ares_channel channel, const char *name, char **s)
== ARES_SUCCESS)
{
if (strncasecmp(line, name, len) != 0 ||
- !isspace((unsigned char)line[len]))
+ !ISSPACE(line[len]))
continue;
p = line + len;
- while (isspace((unsigned char)*p))
+ while (ISSPACE(*p))
p++;
if (*p)
{
q = p + 1;
- while (*q && !isspace((unsigned char)*q))
+ while (*q && !ISSPACE(*q))
q++;
*s = malloc(q - p + 1);
if (*s)