summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-07-07 22:42:57 +0000
committerluigi <luigi@FreeBSD.org>2002-07-07 22:42:57 +0000
commitbc68bebfacbe4bfef5200e8722b8f7e5d3882f79 (patch)
treed8de324280597635ae27642b3e62604516424c8d
parent94ba2259e246aa29c31c0987d46773fedc5b9c2d (diff)
downloadFreeBSD-src-bc68bebfacbe4bfef5200e8722b8f7e5d3882f79.zip
FreeBSD-src-bc68bebfacbe4bfef5200e8722b8f7e5d3882f79.tar.gz
Remove 0 initializers for global/static variables, so they end up in
BSS instead of DATA. This marginally reduces the kernel image size, though the difference is almost irrelevant for compressed kernels.
-rw-r--r--sys/net/bridge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/bridge.c b/sys/net/bridge.c
index 91a96a2..b37ba6c 100644
--- a/sys/net/bridge.c
+++ b/sys/net/bridge.c
@@ -201,8 +201,8 @@ static struct cluster_softc *clusters;
static int bdginit(void);
static void parse_bdg_cfg(void);
-static int bdg_ipf = 0; /* IPFilter enabled in bridge */
-static int bdg_ipfw = 0 ;
+static int bdg_ipf; /* IPFilter enabled in bridge */
+static int bdg_ipfw;
#if 0 /* debugging only */
static char *bdg_dst_names[] = {
@@ -396,7 +396,7 @@ reconfigure_bridge(void)
}
}
-static char bridge_cfg[1024] = { "" } ;
+static char bridge_cfg[1024]; /* in BSS so initialized to all NULs */
/*
* parse the config string, set IFF_USED, name and cluster_id
@@ -581,7 +581,7 @@ static int bdg_loops ;
static void
bdg_timeout(void *dummy)
{
- static int slowtimer = 0 ;
+ static int slowtimer; /* in BSS so initialized to 0 */
if (do_bridge) {
static int age_index = 0 ; /* index of table position to age */
OpenPOWER on IntegriCloud