]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix compile warning on mingw.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 15 Oct 2010 09:43:54 +0000 (09:43 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 15 Oct 2010 09:43:54 +0000 (09:43 +0000)
git-svn-id: file:///svn/unbound/trunk@2295 be551aaa-1e26-0410-a405-d3ace91eadb9

util/netevent.c

index a2dc1d786c6fd50787ed6dd67d911bcf6ebb86b5..c04d192e560d293da96bf0a9df8af6e24bd6deac 100644 (file)
@@ -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