From c4ddb6caf56cebc1e258285af0e2b19cd052d30a Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Sun, 7 Jul 2002 22:42:57 +0000 Subject: [PATCH] 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. --- sys/net/bridge.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/net/bridge.c b/sys/net/bridge.c index 91a96a28176..b37ba6c6a25 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 */