aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/c-ares/src/lib/ares_send.c
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-08-05 11:18:14 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-08-05 11:31:14 +0300
commit151b1ad35c1c71f46ce31d487c0e4d415c58f54e (patch)
treef62d94570ed272d823b95338d52c769348d08bd8 /contrib/libs/c-ares/src/lib/ares_send.c
parent25798d43c70543e50210ea8d8dcdf856eef416cb (diff)
downloadydb-151b1ad35c1c71f46ce31d487c0e4d415c58f54e.tar.gz
Update contrib/libs/c-ares to 1.30.0
98e3184a9a9a280bd65439e2e21a019576a65a9f
Diffstat (limited to 'contrib/libs/c-ares/src/lib/ares_send.c')
-rw-r--r--contrib/libs/c-ares/src/lib/ares_send.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libs/c-ares/src/lib/ares_send.c b/contrib/libs/c-ares/src/lib/ares_send.c
index 54f2b504d5..8bbc6e758b 100644
--- a/contrib/libs/c-ares/src/lib/ares_send.c
+++ b/contrib/libs/c-ares/src/lib/ares_send.c
@@ -55,7 +55,7 @@ static ares_status_t ares_send_dnsrec_int(ares_channel_t *channel,
{
struct query *query;
size_t packetsz;
- struct timeval now = ares__tvnow();
+ ares_timeval_t now = ares__tvnow();
ares_status_t status;
unsigned short id = generate_unique_qid(channel);
const ares_dns_record_t *dnsrec_resp = NULL;
@@ -91,9 +91,9 @@ static ares_status_t ares_send_dnsrec_int(ares_channel_t *channel,
return status;
}
- query->qid = id;
- query->timeout.tv_sec = 0;
- query->timeout.tv_usec = 0;
+ query->qid = id;
+ query->timeout.sec = 0;
+ query->timeout.usec = 0;
/* Ignore first 2 bytes, assign our own query id */
query->qbuf[0] = (unsigned char)((id >> 8) & 0xFF);
@@ -200,7 +200,7 @@ void ares_send(ares_channel_t *channel, const unsigned char *qbuf, int qlen,
ares_dns_record_destroy(dnsrec);
}
-size_t ares_queue_active_queries(ares_channel_t *channel)
+size_t ares_queue_active_queries(const ares_channel_t *channel)
{
size_t len;