Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Oct 2011 10:58:00 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226431 - head/sys/netinet
Message-ID:  <201110161058.p9GAw0Wl059339@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sun Oct 16 10:58:00 2011
New Revision: 226431
URL: http://svn.freebsd.org/changeset/base/226431

Log:
  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>

Modified:
  head/sys/netinet/udp_var.h

Modified: head/sys/netinet/udp_var.h
==============================================================================
--- head/sys/netinet/udp_var.h	Sun Oct 16 10:14:33 2011	(r226430)
+++ head/sys/netinet/udp_var.h	Sun Oct 16 10:58:00 2011	(r226431)
@@ -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 *);
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110161058.p9GAw0Wl059339>