diff options
author | phk <phk@FreeBSD.org> | 2009-04-05 15:55:09 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2009-04-05 15:55:09 +0000 |
commit | 0aa4473504e30b8c42fde93c3e832d615620f0c0 (patch) | |
tree | 6feb868b340092763bc9b967ac76d4decc89314e /sbin/routed/table.c | |
parent | 30d15f06f1df7487f207c55cacbc1ea43eb39559 (diff) | |
download | FreeBSD-src-0aa4473504e30b8c42fde93c3e832d615620f0c0.zip FreeBSD-src-0aa4473504e30b8c42fde93c3e832d615620f0c0.tar.gz |
Modernize prototypes (ie: no extern)
Make lots of stuff static.
Diffstat (limited to 'sbin/routed/table.c')
-rw-r--r-- | sbin/routed/table.c | 9 |
1 files changed, 5 insertions, 4 deletions
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; |