diff --git a/docs/ares_search.3 b/docs/ares_search.3 index dd71e493..1a324b0f 100644 --- a/docs/ares_search.3 +++ b/docs/ares_search.3 @@ -15,7 +15,7 @@ typedef void (*ares_callback_dnsrec)(void *\fIarg\fP, const ares_dns_record_t *\fIdnsrec\fP); void ares_search_dnsrec(ares_channel_t *\fIchannel\fP, - ares_dns_record_t *\fIdnsrec\fP, + const ares_dns_record_t *\fIdnsrec\fP, ares_callback_dnsrec \fIcallback\fP, void *\fIarg\fP); typedef void (*ares_callback)(void *\fIarg\fP, int \fIstatus\fP, diff --git a/include/ares.h b/include/ares.h index 49d7a569..f454cd09 100644 --- a/include/ares.h +++ b/include/ares.h @@ -588,7 +588,7 @@ CARES_EXTERN CARES_DEPRECATED_FOR(ares_search_dnsrec) * to the provided callback. */ CARES_EXTERN ares_status_t ares_search_dnsrec(ares_channel_t *channel, - ares_dns_record_t *dnsrec, + const ares_dns_record_t *dnsrec, ares_callback_dnsrec callback, void *arg); diff --git a/src/lib/ares_search.c b/src/lib/ares_search.c index d40941a0..06aef063 100644 --- a/src/lib/ares_search.c +++ b/src/lib/ares_search.c @@ -447,7 +447,7 @@ void ares_search(ares_channel_t *channel, const char *name, int dnsclass, /* Search for a DNS record. Wrapper around ares_search_int(). */ ares_status_t ares_search_dnsrec(ares_channel_t *channel, - ares_dns_record_t *dnsrec, + const ares_dns_record_t *dnsrec, ares_callback_dnsrec callback, void *arg) { ares_status_t status;