From 9c1ad0f9f7fef9e178f2a7b417db0131bb86097b Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 18 Oct 2006 03:42:06 +0000 Subject: Replace is*() macros with our own IS*() ones. Get rid of non ANSI/ISO isascii(). --- ares/ares_search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ares/ares_search.c') diff --git a/ares/ares_search.c b/ares/ares_search.c index 099a7c752..b05b4a833 100644 --- a/ares/ares_search.c +++ b/ares/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) -- cgit v1.2.3