1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2026-03-21 00:37:55 +00:00

Fix compiler warning: conversion from "int" to "unsigned short" may lose significant bits

This commit is contained in:
Yang Tse
2007-10-20 15:11:51 +00:00
parent 746b3d7acc
commit 1fe4d44ed9

View File

@ -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;