diff options
author | Yang Tse <yangsita@gmail.com> | 2012-06-14 21:19:48 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-14 21:19:48 +0200 |
commit | 38b69b7269d4abbc75f34b8ab38d7bdab4ad91ab (patch) | |
tree | 6f1cdd4881cbf7da8564904c9f99770f65a987cc /ares_init.c | |
parent | 1972aad19ef2c78498cb5f08ec99f2c35779731d (diff) | |
download | c-ares-38b69b7269d4abbc75f34b8ab38d7bdab4ad91ab.tar.gz c-ares-38b69b7269d4abbc75f34b8ab38d7bdab4ad91ab.tar.bz2 c-ares-38b69b7269d4abbc75f34b8ab38d7bdab4ad91ab.zip |
Kill compiler warning
Diffstat (limited to 'ares_init.c')
-rw-r--r-- | ares_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_init.c b/ares_init.c index ccdc07a..f9eb054 100644 --- a/ares_init.c +++ b/ares_init.c @@ -355,8 +355,8 @@ int ares_save_options(ares_channel channel, struct ares_options *options, options->timeout = channel->timeout; options->tries = channel->tries; options->ndots = channel->ndots; - options->udp_port = (unsigned short)ntohs(channel->udp_port); - options->tcp_port = (unsigned short)ntohs(channel->tcp_port); + options->udp_port = ntohs(aresx_sitous(channel->udp_port)); + options->tcp_port = ntohs(aresx_sitous(channel->tcp_port)); options->sock_state_cb = channel->sock_state_cb; options->sock_state_cb_data = channel->sock_state_cb_data; |