diff options
author | ed <ed@FreeBSD.org> | 2011-10-16 10:58:00 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-10-16 10:58:00 +0000 |
commit | 260d7934a518bcc3924315dfc2f9cdfa061ddb5a (patch) | |
tree | 6b2a9c502a89f7da906dbf0488b9a84029ce7e18 | |
parent | abe2037bc726a33e03448bc38a9a492f8ebb16ec (diff) | |
download | FreeBSD-src-260d7934a518bcc3924315dfc2f9cdfa061ddb5a.zip FreeBSD-src-260d7934a518bcc3924315dfc2f9cdfa061ddb5a.tar.gz |
Forward declare mbuf and inpcb.
This fixes a compiler warning at WARNS=6 when including the header files
as follows:
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
#include <netinet/udp_var.h>
-rw-r--r-- | sys/netinet/udp_var.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h index 7e7cfba..6e5abd0 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 *); /* |