From 81b06a09b71fe236ca0964aea5bf8338558964da Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 17 Dec 2005 23:34:21 +0000 Subject: Fix compiler warning --- ares/adig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ares/adig.c') 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; } -- cgit v1.2.3