projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
746b3d7
)
Fix compiler warning: conversion from "int" to "unsigned short" may lose significant...
author
Yang Tse
<yangsita@gmail.com>
Sat, 20 Oct 2007 15:11:51 +0000
(15:11 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Sat, 20 Oct 2007 15:11:51 +0000
(15:11 +0000)
ares_init.c
patch
|
blob
|
history
diff --git
a/ares_init.c
b/ares_init.c
index
c1e10f9
..
2627cb4
100644
(file)
--- a/
ares_init.c
+++ b/
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;