From: Daniel Stenberg Date: Mon, 23 Feb 2004 07:57:44 +0000 (+0000) Subject: next_id is an unsigned short, typecast the assign to prevent picky compilers X-Git-Tag: curl-7_11_1~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89227a9d75041900fd1607953e9cba0e9921ef6e;p=thirdparty%2Fcurl.git next_id is an unsigned short, typecast the assign to prevent picky compilers to warn --- diff --git a/ares/ares_init.c b/ares/ares_init.c index 5277674676..88d60b4b69 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;