summaryrefslogtreecommitdiff
path: root/inet_net_pton.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-13 18:02:20 (GMT)
committerYang Tse <yangsita@gmail.com>2007-02-13 18:02:20 (GMT)
commit2bd57a6d3079af9235f84b2bacced2794f8acdd3 (patch)
treed07c9b06aed7e5e948fa0132b9c00f01e01900c3 /inet_net_pton.c
parent05da7b7fdaa64ceb3b5c39454978b5f8570aa78c (diff)
downloadc-ares-2bd57a6d3079af9235f84b2bacced2794f8acdd3.zip
c-ares-2bd57a6d3079af9235f84b2bacced2794f8acdd3.tar.gz
c-ares-2bd57a6d3079af9235f84b2bacced2794f8acdd3.tar.bz2
use our own ISUPPER and ISLOWER macros
Diffstat (limited to 'inet_net_pton.c')
-rw-r--r--inet_net_pton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inet_net_pton.c b/inet_net_pton.c
index 8c78a0b..49bac69 100644
--- a/inet_net_pton.c
+++ b/inet_net_pton.c
@@ -86,7 +86,7 @@ inet_net_pton_ipv4(const char *src, unsigned char *dst, size_t size)
dirty = 0;
src++; /* skip x or X. */
while ((ch = *src++) != '\0' && ISXDIGIT(ch)) {
- if (isupper(ch))
+ if (ISUPPER(ch))
ch = tolower(ch);
n = (int)(strchr(xdigits, ch) - xdigits);
if (dirty == 0)