aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-23 07:57:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-23 07:57:44 +0000
commit89227a9d75041900fd1607953e9cba0e9921ef6e (patch)
tree340e7d21d3d3aeba3a1de76c5e39e023a2f21a27 /ares
parentdfb5090e0f11c40032adf6d8df7bf207ffacc6eb (diff)
next_id is an unsigned short, typecast the assign to prevent picky compilers
to warn
Diffstat (limited to 'ares')
-rw-r--r--ares/ares_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c
index 527767467..88d60b4b6 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -136,7 +136,8 @@ int ares_init_options(ares_channel *channelptr, struct ares_options *options,
* field, so there's not much to be done about that.
*/
gettimeofday(&tv, NULL);
- channel->next_id = (tv.tv_sec ^ tv.tv_usec ^ getpid()) & 0xffff;
+ channel->next_id = (unsigned short)
+ (tv.tv_sec ^ tv.tv_usec ^ getpid()) & 0xffff;
channel->queries = NULL;