From 1de0ea4abd7153c6fcdbdbac6048a1e46f673fc2 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 31 Jan 2017 11:32:49 +0100 Subject: Sort out variable and function declarations. - Make static what can be made static. - Add declaration where they were missing. - Don't define variables in headers. - Move declaations to the proper locations. - Pick up declarations from the proper headers. Signed-off-by: Ralf Baechle --- ax25ipd/routing.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ax25ipd/routing.c') diff --git a/ax25ipd/routing.c b/ax25ipd/routing.c index 2ba5a9c..6fd5db4 100644 --- a/ax25ipd/routing.c +++ b/ax25ipd/routing.c @@ -29,8 +29,8 @@ struct route_table_entry { struct route_table_entry *next; }; -struct route_table_entry *route_tbl; -struct route_table_entry *default_route; +static struct route_table_entry *route_tbl; +static struct route_table_entry *default_route; /* The Broadcast address structure is not visible outside this module either */ @@ -39,7 +39,7 @@ struct bcast_table_entry { struct bcast_table_entry *next; }; -struct bcast_table_entry *bcast_tbl; +static struct bcast_table_entry *bcast_tbl; /* Initialize the routing module */ void route_init(void) -- cgit v1.2.3