summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-07-04 05:46:13 +0000
committerdg <dg@FreeBSD.org>1995-07-04 05:46:13 +0000
commit711bd7d1092171cbc4f7424589d6fd1e9d1abbcd (patch)
tree8a0a31333b2a7088c00fa4bea6382a676cae0e56 /sys
parent5d30bb533f8b7a6affd964d1734e6349fe61ab73 (diff)
downloadFreeBSD-src-711bd7d1092171cbc4f7424589d6fd1e9d1abbcd.zip
FreeBSD-src-711bd7d1092171cbc4f7424589d6fd1e9d1abbcd.tar.gz
Added some spaces for KNF. Moved some zero-initialized pointers into the
kernel's .bss.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_fwdef.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/sys/netinet/ip_fwdef.c b/sys/netinet/ip_fwdef.c
index 2f2a966..249a7b3 100644
--- a/sys/netinet/ip_fwdef.c
+++ b/sys/netinet/ip_fwdef.c
@@ -28,31 +28,28 @@
#include <net/if.h>
#include <net/route.h>
-
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
-
#include <netinet/ip_fw.h>
-struct ip_fw *ip_fw_chain=NULL;
-u_short ip_fw_policy=0;
-
-struct ip_fw *ip_acct_chain=NULL;
+u_short ip_fw_policy;
+struct ip_fw *ip_fw_chain;
+struct ip_fw *ip_acct_chain;
#ifdef IPFIREWALL
-int (*ip_fw_chk_ptr)(struct ip *,struct ifnet *,struct ip_fw *)=&ip_fw_chk;
-int (*ip_fw_ctl_ptr)(int,struct mbuf *)=&ip_fw_ctl;
+int (*ip_fw_chk_ptr)(struct ip *, struct ifnet *, struct ip_fw *) = &ip_fw_chk;
+int (*ip_fw_ctl_ptr)(int, struct mbuf *) = &ip_fw_ctl;
#else
-int (*ip_fw_chk_ptr)(struct ip *,struct ifnet *,struct ip_fw *)=NULL;
-int (*ip_fw_ctl_ptr)(int,struct mbuf *)=NULL;
+int (*ip_fw_chk_ptr)(struct ip *, struct ifnet *, struct ip_fw *);
+int (*ip_fw_ctl_ptr)(int, struct mbuf *);
#endif
#ifdef IPACCT
-void (*ip_acct_cnt_ptr)(struct ip *,struct ifnet *,struct ip_fw *,int)=&ip_acct_cnt;
-int (*ip_acct_ctl_ptr)(int,struct mbuf *)=&ip_acct_ctl;
+void (*ip_acct_cnt_ptr)(struct ip *, struct ifnet *, struct ip_fw *, int) = &ip_acct_cnt;
+int (*ip_acct_ctl_ptr)(int, struct mbuf *) = &ip_acct_ctl;
#else
-void (*ip_acct_cnt_ptr)(struct ip *,struct ifnet *,struct ip_fw *,int)=NULL;
-int (*ip_acct_ctl_ptr)(int,struct mbuf *)=NULL;
+void (*ip_acct_cnt_ptr)(struct ip *, struct ifnet *, struct ip_fw *, int);
+int (*ip_acct_ctl_ptr)(int, struct mbuf *);
#endif
OpenPOWER on IntegriCloud