diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-20 15:11:51 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-20 15:11:51 +0000 |
commit | 5c8fc7dce9668a141a01781159817552a7cb4ef8 (patch) | |
tree | eede911330314f468095d4938c0f8c79993d4395 /ares | |
parent | e8d3710aff10014acb7adbf2bb721dbd53258e4f (diff) |
Fix compiler warning: conversion from "int" to "unsigned short" may lose significant bits
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c index c1e10f942..2627cb46a 100644 --- a/ares/ares_init.c +++ b/ares/ares_init.c @@ -266,8 +266,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 = channel->udp_port; - options->tcp_port = channel->tcp_port; + options->udp_port = (unsigned short)channel->udp_port; + options->tcp_port = (unsigned short)channel->tcp_port; options->sock_state_cb = channel->sock_state_cb; options->sock_state_cb_data = channel->sock_state_cb_data; |