Added some spaces for KNF. Moved some zero-initialized pointers into the

kernel's .bss.
This commit is contained in:
David Greenman 1995-07-04 05:46:13 +00:00
parent 09270166bb
commit 04c3f9f7ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9392

View File

@ -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