summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-17 23:34:21 +0000
committerYang Tse <yangsita@gmail.com>2005-12-17 23:34:21 +0000
commitc4e7de9bdd9b2d868f302e5c74ab669f5a8e589e (patch)
treecf5a4cb7ffceee38de29677ec4bb766ebf11307e
parentecf65daa5e4f19022e8a0664b03d32b37a89612f (diff)
downloadc-ares-c4e7de9bdd9b2d868f302e5c74ab669f5a8e589e.tar.gz
c-ares-c4e7de9bdd9b2d868f302e5c74ab669f5a8e589e.tar.bz2
c-ares-c4e7de9bdd9b2d868f302e5c74ab669f5a8e589e.zip
Fix compiler warning
-rw-r--r--adig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/adig.c b/adig.c
index c09920b..b5ee38f 100644
--- a/adig.c
+++ b/adig.c
@@ -227,7 +227,7 @@ int main(int argc, char **argv)
/* Set the TCP port number. */
if (!isdigit((unsigned char)*optarg))
usage();
- options.tcp_port = strtol(optarg, NULL, 0);
+ options.tcp_port = (unsigned short)strtol(optarg, NULL, 0);
optmask |= ARES_OPT_TCP_PORT;
break;
@@ -235,7 +235,7 @@ int main(int argc, char **argv)
/* Set the UDP port number. */
if (!isdigit((unsigned char)*optarg))
usage();
- options.udp_port = strtol(optarg, NULL, 0);
+ options.udp_port = (unsigned short)strtol(optarg, NULL, 0);
optmask |= ARES_OPT_UDP_PORT;
break;
}