From: Wouter Wijngaards Date: Fri, 15 Oct 2010 09:43:54 +0000 (+0000) Subject: Fix compile warning on mingw. X-Git-Tag: release-1.4.7rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5e0a1c85719af36a37063cc8b3334adae7f818d;p=thirdparty%2Funbound.git Fix compile warning on mingw. git-svn-id: file:///svn/unbound/trunk@2295 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/util/netevent.c b/util/netevent.c index a2dc1d786..c04d192e5 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -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