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

dns,http,sa: fix HAVE_INET6 off warnings #219

Merged
merged 1 commit into from
Feb 10, 2022
Merged
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
5 changes: 4 additions & 1 deletion src/dns/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,10 @@ int dnsc_alloc(struct dnsc **dcpp, const struct dnsc_conf *conf,
const struct sa *srvv, uint32_t srvc)
{
struct dnsc *dnsc;
struct sa laddr, laddr6;
struct sa laddr;
#ifdef HAVE_INET6
struct sa laddr6;
#endif
int err;

if (!dcpp)
Expand Down
3 changes: 3 additions & 0 deletions src/http/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,5 +1113,8 @@ void http_client_set_laddr6(struct http_cli *cli, const struct sa *addr)
#ifdef HAVE_INET6
if (cli && addr)
sa_cpy(&cli->laddr6, addr);
#else
(void)cli;
(void)addr;
#endif
}
2 changes: 2 additions & 0 deletions src/sa/sa.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,8 @@ void sa_set_scopeid(struct sa *sa, uint32_t scopeid)
return;

sa->u.in6.sin6_scope_id = scopeid;
#else
(void)scopeid;
#endif
}

Expand Down