aboutsummaryrefslogtreecommitdiff
path: root/ares/adig.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
commit9c1ad0f9f7fef9e178f2a7b417db0131bb86097b (patch)
tree280275f1eb22cefec098a78378d5bea61bbebb7a /ares/adig.c
parent71c6335293e4945262ab25b867d59be17ce12819 (diff)
Replace is*() macros with our own IS*() ones.
Get rid of non ANSI/ISO isascii().
Diffstat (limited to 'ares/adig.c')
-rw-r--r--ares/adig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/adig.c b/ares/adig.c
index 80ee7f47f..fb3a43222 100644
--- a/ares/adig.c
+++ b/ares/adig.c
@@ -225,7 +225,7 @@ int main(int argc, char **argv)
case 'T':
/* Set the TCP port number. */
- if (!isdigit((unsigned char)*optarg))
+ if (!ISDIGIT(*optarg))
usage();
options.tcp_port = (unsigned short)strtol(optarg, NULL, 0);
optmask |= ARES_OPT_TCP_PORT;
@@ -233,7 +233,7 @@ int main(int argc, char **argv)
case 'U':
/* Set the UDP port number. */
- if (!isdigit((unsigned char)*optarg))
+ if (!ISDIGIT(*optarg))
usage();
options.udp_port = (unsigned short)strtol(optarg, NULL, 0);
optmask |= ARES_OPT_UDP_PORT;