Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESOLV: supress deprecation warnings #7592

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/resolv/async_resolv.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <arpa/inet.h>
#include <arpa/nameser.h>

#include <ares.h>
#include <talloc.h>
#include <tevent.h>

Expand Down Expand Up @@ -794,7 +793,7 @@ resolv_gethostbyname_dns_query_done(void *arg, int status, int timeouts,
unsigned char *abuf, int alen);
static int
resolv_gethostbyname_dns_parse(struct gethostbyname_dns_state *state,
int status, unsigned char *abuf, int alen);
unsigned char *abuf, int alen);

static struct tevent_req *
resolv_gethostbyname_dns_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
Expand Down Expand Up @@ -935,7 +934,7 @@ resolv_gethostbyname_dns_query_done(void *arg, int status, int timeouts,
return;
}

ret = resolv_gethostbyname_dns_parse(state, status, abuf, alen);
ret = resolv_gethostbyname_dns_parse(state, abuf, alen);
if (ret != EOK) {
tevent_req_error(req, ret);
return;
Expand All @@ -946,11 +945,12 @@ resolv_gethostbyname_dns_query_done(void *arg, int status, int timeouts,

static int
resolv_gethostbyname_dns_parse(struct gethostbyname_dns_state *state,
int status, unsigned char *abuf, int alen)
unsigned char *abuf, int alen)
{
struct hostent *hostent = NULL;
int naddrttls;
errno_t ret;
int status;
void *addr = NULL;

naddrttls = DNS_HEADER_ANCOUNT(abuf);
Expand Down
1 change: 1 addition & 0 deletions src/resolv/async_resolv.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define __ASYNC_RESOLV_H__

#include <netdb.h>
#define CARES_NO_DEPRECATED
#include <ares.h>

#include "config.h"
Expand Down
Loading