diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 07:57:44 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-23 07:57:44 +0000 |
commit | 33907a6f1055846aec68ebf89c6440fdfc5ea5a2 (patch) | |
tree | 936dcb2a067f89f92c21d9ec645e055ca7fb49ad /ares_init.c | |
parent | c7c24e3de7861de77e25ef4806790823d4b32e2b (diff) | |
download | c-ares-33907a6f1055846aec68ebf89c6440fdfc5ea5a2.tar.gz c-ares-33907a6f1055846aec68ebf89c6440fdfc5ea5a2.tar.bz2 c-ares-33907a6f1055846aec68ebf89c6440fdfc5ea5a2.zip |
next_id is an unsigned short, typecast the assign to prevent picky compilers
to warn
Diffstat (limited to 'ares_init.c')
-rw-r--r-- | ares_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ares_init.c b/ares_init.c index 5277674..88d60b4 100644 --- a/ares_init.c +++ b/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; |