ares_search_dnsrec() takes a const

pull/733/head
Brad House 8 months ago
parent 9f0a970008
commit b2139f6c79
  1. 2
      docs/ares_search.3
  2. 2
      include/ares.h
  3. 2
      src/lib/ares_search.c

@ -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,

@ -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);

@ -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;

Loading…
Cancel
Save