aboutsummaryrefslogtreecommitdiff
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
commit81b06a09b71fe236ca0964aea5bf8338558964da (patch)
tree5f88dbe2c447ed8ffbef314edc1e001e0701ec88
parent23b34744d9d3ec2623b5f6be5051ab7e094f63e8 (diff)
Fix compiler warning
-rw-r--r--ares/adig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/adig.c b/ares/adig.c
index c09920ba0..b5ee38f2c 100644
--- a/ares/adig.c
+++ b/ares/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;
}