diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-11-20 07:41:26 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-11-20 07:41:26 +0000 |
commit | 5ff47a7b1d61d3017586000147076090c12d9e96 (patch) | |
tree | 06f958dedacd6fb50fd435a338242982d6928b91 /ares_query.c | |
parent | 8a6b51d5601ab65f64514bb80c567f5f5e103bc1 (diff) | |
download | c-ares-5ff47a7b1d61d3017586000147076090c12d9e96.tar.gz c-ares-5ff47a7b1d61d3017586000147076090c12d9e96.tar.bz2 c-ares-5ff47a7b1d61d3017586000147076090c12d9e96.zip |
please the picky compilers by staying with short as the data we get is short
only
Diffstat (limited to 'ares_query.c')
-rw-r--r-- | ares_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ares_query.c b/ares_query.c index 2582459..b316133 100644 --- a/ares_query.c +++ b/ares_query.c @@ -92,15 +92,15 @@ static struct query* find_query_by_id(ares_channel channel, int id) performed per id generation. In practice this search should happen only once per newly generated id */ -static int generate_unique_id(ares_channel channel) +static unsigned short generate_unique_id(ares_channel channel) { - int id; + short id; do { id = ares__generate_new_id(&channel->id_key); } while (find_query_by_id(channel,id)); - return id; + return (unsigned short)id; } void ares_query(ares_channel channel, const char *name, int dnsclass, |