mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Fix compile warning on mingw.
git-svn-id: file:///svn/unbound/trunk@2295 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
b20f11c6a7
commit
e5e0a1c857
1 changed files with 2 additions and 5 deletions
|
|
@ -332,10 +332,10 @@ comm_point_send_udp_msg(struct comm_point *c, ldns_buffer* packet,
|
|||
return 1;
|
||||
}
|
||||
|
||||
#if defined(AF_INET6) && defined(IPV6_PKTINFO) && (defined(HAVE_RECVMSG) || defined(HAVE_SENDMSG))
|
||||
/** print debug ancillary info */
|
||||
static void p_ancil(const char* str, struct comm_reply* r)
|
||||
{
|
||||
#if defined(AF_INET6) && defined(IPV6_PKTINFO) && (defined(HAVE_RECVMSG) || defined(HAVE_SENDMSG))
|
||||
if(r->srctype != 4 && r->srctype != 6) {
|
||||
log_info("%s: unknown srctype %d", str, r->srctype);
|
||||
return;
|
||||
|
|
@ -373,11 +373,8 @@ static void p_ancil(const char* str, struct comm_reply* r)
|
|||
log_info("%s: %s", str, buf1);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
(void)str;
|
||||
(void)r;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/** send a UDP reply over specified interface*/
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue