From 6670942f715afd8e44a86fa74045568567414b1a Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 24 Jan 1995 04:47:33 +0000 Subject: [PATCH] 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. --- sys/net/route.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/net/route.h b/sys/net/route.h index fd6ead9be086..97ec9e4d36a4 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -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