projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7c24e3
)
next_id is an unsigned short, typecast the assign to prevent picky compilers
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 23 Feb 2004 07:57:44 +0000
(07:57 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 23 Feb 2004 07:57:44 +0000
(07:57 +0000)
to warn
ares_init.c
patch
|
blob
|
history
diff --git
a/ares_init.c
b/ares_init.c
index 5277674676619cfcedbc21f7885d976a9c8e98d5..88d60b4b696ab73679222c57833ff248ca7d8d01 100644
(file)
--- 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;