summaryrefslogtreecommitdiffstats
path: root/ax25ipd/routing.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-31 11:32:49 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-01-31 11:32:49 +0100
commit1de0ea4abd7153c6fcdbdbac6048a1e46f673fc2 (patch)
treec81a8d6c58fcee19cead9cce8122ec35342428b1 /ax25ipd/routing.c
parentaa1bfde879f3c5885199d7bb4720efaabff67d8c (diff)
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 <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/routing.c')
-rw-r--r--ax25ipd/routing.c6
1 files changed, 3 insertions, 3 deletions
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)