aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-11-20 07:41:26 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-11-20 07:41:26 +0000
commitcd6fc8a8efe246d3aac78d2a81223b27accb3b17 (patch)
tree8e9a33a94e3fcaedc8bcd63ceb124c5c3dbe486d /ares
parent330878137647b83aecb5d998a243babce3ee3f6b (diff)
please the picky compilers by staying with short as the data we get is short
only
Diffstat (limited to 'ares')
-rw-r--r--ares/ares_query.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ares/ares_query.c b/ares/ares_query.c
index 25824593c..b316133eb 100644
--- a/ares/ares_query.c
+++ b/ares/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,