mirror of
https://github.com/curl/curl.git
synced 2026-07-31 17:38:03 +03:00
next_id is an unsigned short, typecast the assign to prevent picky compilers
to warn
This commit is contained in:
parent
dfb5090e0f
commit
89227a9d75
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue