Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2011 16:13:59 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r222030 - projects/pf/pf45/sys/contrib/pf/net
Message-ID:  <201105171613.p4HGDxKE038048@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Tue May 17 16:13:59 2011
New Revision: 222030
URL: http://svn.freebsd.org/changeset/base/222030

Log:
  Make compile without INET fixing an #ifdef.
  While here make function static.

Modified:
  projects/pf/pf45/sys/contrib/pf/net/pf.c

Modified: projects/pf/pf45/sys/contrib/pf/net/pf.c
==============================================================================
--- projects/pf/pf45/sys/contrib/pf/net/pf.c	Tue May 17 15:57:31 2011	(r222029)
+++ projects/pf/pf45/sys/contrib/pf/net/pf.c	Tue May 17 16:13:59 2011	(r222030)
@@ -278,7 +278,7 @@ void			 pf_send_tcp(const struct pf_rule
 			    u_int16_t, u_int16_t, u_int32_t, u_int32_t,
 			    u_int8_t, u_int16_t, u_int16_t, u_int8_t, int,
 			    u_int16_t, struct ether_header *, struct ifnet *);
-void			 pf_send_icmp(struct mbuf *, u_int8_t, u_int8_t,
+static void		 pf_send_icmp(struct mbuf *, u_int8_t, u_int8_t,
 			    sa_family_t, struct pf_rule *);
 void			 pf_detach_state(struct pf_state *);
 void			 pf_state_key_detach(struct pf_state *, int);
@@ -2515,7 +2515,7 @@ pf_send_tcp(const struct pf_rule *r, sa_
 	}
 }
 
-void
+static void
 pf_send_icmp(struct mbuf *m, u_int8_t type, u_int8_t code, sa_family_t af,
     struct pf_rule *r)
 {
@@ -2523,8 +2523,8 @@ pf_send_icmp(struct mbuf *m, u_int8_t ty
 #ifdef __FreeBSD__
 #ifdef INET
 	struct ip *ip;
-	struct pf_mtag *pf_mtag;
 #endif
+	struct pf_mtag *pf_mtag;
 #endif
 
 #ifdef __FreeBSD__



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