next_id is an unsigned short, typecast the assign to prevent picky compilers

to warn
pull/1/head
Daniel Stenberg 21 years ago
parent c7c24e3de7
commit 33907a6f10
  1. 3
      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. * field, so there's not much to be done about that.
*/ */
gettimeofday(&tv, NULL); 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; channel->queries = NULL;

Loading…
Cancel
Save