From 0aa4473504e30b8c42fde93c3e832d615620f0c0 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 5 Apr 2009 15:55:09 +0000 Subject: Modernize prototypes (ie: no extern) Make lots of stuff static. --- sbin/routed/table.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sbin/routed/table.c') diff --git a/sbin/routed/table.c b/sbin/routed/table.c index 33f8332..a1f80ff 100644 --- a/sbin/routed/table.c +++ b/sbin/routed/table.c @@ -48,6 +48,7 @@ static void masktrim(struct sockaddr_in *ap); #else static void masktrim(struct sockaddr_in_new *ap); #endif +static void rtbad(struct rt_entry *); struct radix_node_head *rhead; /* root of the radix tree */ @@ -66,7 +67,7 @@ int stopint; int total_routes; /* zap any old routes through this gateway */ -naddr age_bad_gate; +static naddr age_bad_gate; /* It is desirable to "aggregate" routes, to combine differing routes of @@ -93,7 +94,7 @@ naddr age_bad_gate; * sorted first by address, with the smallest address first. */ -struct ag_info ag_slots[NUM_AG_SLOTS], *ag_avail, *ag_corsest, *ag_finest; +static struct ag_info ag_slots[NUM_AG_SLOTS], *ag_avail, *ag_corsest, *ag_finest; /* #define DEBUG_AG */ #ifdef DEBUG_AG @@ -611,7 +612,7 @@ ag_check(naddr dst, static const char * rtm_type_name(u_char type) { - static const char *rtm_types[] = { + static const char * const rtm_types[] = { "RTM_ADD", "RTM_DELETE", "RTM_CHANGE", @@ -1886,7 +1887,7 @@ rts_delete(struct rt_entry *rt, /* Get rid of a bad route, and try to switch to a replacement. */ -void +static void rtbad(struct rt_entry *rt) { struct rt_spare new; -- cgit v1.1