Declare `struct mbuf' with the correct scope to avoid lots of warnings

for compiling routed...  Previously a kernel function pointer that is
bogusly visible to applications was incompletely declared to hide the
problem.
This commit is contained in:
Bruce Evans 1995-01-24 04:47:33 +00:00
parent 0a17153035
commit 6670942f71
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5833

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)route.h 8.3 (Berkeley) 4/19/94
* $Id: route.h,v 1.6 1994/12/13 22:31:48 wollman Exp $
* $Id: route.h,v 1.7 1995/01/23 02:00:35 wollman Exp $
*/
#ifndef _NET_ROUTE_H_
@ -80,6 +80,11 @@ struct rt_metrics {
#define RTM_RTTUNIT 1000000 /* units for rtt, rttvar, as units per sec */
#define RTTTOPRHZ(r) ((r) / (RTM_RTTUNIT / PR_SLOWHZ))
/*
* XXX kernel function pointer `rt_output' is visible to applications.
*/
struct mbuf;
/*
* We distinguish between routes to hosts and routes to networks,
* preferring the former if available. For each route we infer