mirror of
https://github.com/curl/curl.git
synced 2025-09-29 23:46:47 +03:00
please the picky compilers by staying with short as the data we get is short
only
This commit is contained in:
parent
3308781376
commit
cd6fc8a8ef
|
@ -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
|
performed per id generation. In practice this search should happen only
|
||||||
once per newly generated id
|
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 {
|
do {
|
||||||
id = ares__generate_new_id(&channel->id_key);
|
id = ares__generate_new_id(&channel->id_key);
|
||||||
} while (find_query_by_id(channel,id));
|
} while (find_query_by_id(channel,id));
|
||||||
|
|
||||||
return id;
|
return (unsigned short)id;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ares_query(ares_channel channel, const char *name, int dnsclass,
|
void ares_query(ares_channel channel, const char *name, int dnsclass,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user