From 3fa417554b225a02d05cdc42ea77abea5fe734cd Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 16 Oct 2011 10:58:00 +0000 Subject: [PATCH] Forward declare mbuf and inpcb. This fixes a compiler warning at WARNS=6 when including the header files as follows: #include #include #include #include #include --- sys/netinet/udp_var.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h index 7e7cfba2eeb8..6e5abd05c21b 100644 --- a/sys/netinet/udp_var.h +++ b/sys/netinet/udp_var.h @@ -51,6 +51,9 @@ struct udpiphdr { #define ui_ulen ui_u.uh_ulen #define ui_sum ui_u.uh_sum +struct inpcb; +struct mbuf; + typedef void(*udp_tun_func_t)(struct mbuf *, int off, struct inpcb *); /*