[trivia] finish off static'ification of ospf6d and ripngd
2008-08-15 Paul Jakma <paul.jakma@sun.com>
* {ospf6d,ripngd}/*: Finish job of marking functions as static, or
exporting declarations for them, to quell warning noise with
Quagga's GCC default high-level of warning flags. Thus allowing
remaining, more useful warnings to be more easily seen.
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c
index 3c84fe6..1a615ff 100644
--- a/ospf6d/ospf6d.c
+++ b/ospf6d/ospf6d.c
@@ -50,11 +50,6 @@
char ospf6_daemon_version[] = OSPF6_DAEMON_VERSION;
-void
-ospf6_debug ()
-{
-}
-
struct route_node *
route_prev (struct route_node *node)
{
@@ -104,7 +99,7 @@
1 /* VTYSH */
};
-int
+static int
config_write_ospf6_debug (struct vty *vty)
{
config_write_ospf6_debug_message (vty);
@@ -221,7 +216,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_type,
show_ipv6_ospf6_database_type_cmd,
@@ -315,7 +310,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_id,
show_ipv6_ospf6_database_id_cmd,
@@ -384,7 +379,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
ALIAS (show_ipv6_ospf6_database_id,
show_ipv6_ospf6_database_linkstate_id_cmd,
@@ -395,7 +390,7 @@
"Display Link state database\n"
"Search by Link state ID\n"
"Specify Link state ID as IPv4 address notation\n"
- );
+ )
ALIAS (show_ipv6_ospf6_database_id,
show_ipv6_ospf6_database_linkstate_id_detail_cmd,
@@ -410,7 +405,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_router,
show_ipv6_ospf6_database_router_cmd,
@@ -481,7 +476,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
ALIAS (show_ipv6_ospf6_database_router,
show_ipv6_ospf6_database_adv_router_cmd,
@@ -492,7 +487,7 @@
"Display Link state database\n"
"Search by Advertising Router\n"
"Specify Advertising Router as IPv4 address notation\n"
- );
+ )
ALIAS (show_ipv6_ospf6_database_router,
show_ipv6_ospf6_database_adv_router_detail_cmd,
@@ -507,7 +502,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_type_id,
show_ipv6_ospf6_database_type_id_cmd,
@@ -614,7 +609,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
ALIAS (show_ipv6_ospf6_database_type_id,
show_ipv6_ospf6_database_type_linkstate_id_cmd,
@@ -636,7 +631,7 @@
"Display Intra-Area-Prefix LSAs\n"
"Search by Link state ID\n"
"Specify Link state ID as IPv4 address notation\n"
- );
+ )
ALIAS (show_ipv6_ospf6_database_type_id,
show_ipv6_ospf6_database_type_linkstate_id_detail_cmd,
@@ -662,7 +657,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_type_router,
show_ipv6_ospf6_database_type_router_cmd,
@@ -771,7 +766,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
ALIAS (show_ipv6_ospf6_database_type_router,
show_ipv6_ospf6_database_type_adv_router_cmd,
@@ -793,7 +788,7 @@
"Display Intra-Area-Prefix LSAs\n"
"Search by Advertising Router\n"
"Specify Advertising Router as IPv4 address notation\n"
- );
+ )
ALIAS (show_ipv6_ospf6_database_type_router,
show_ipv6_ospf6_database_type_adv_router_detail_cmd,
@@ -819,7 +814,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_id_router,
show_ipv6_ospf6_database_id_router_cmd,
@@ -901,7 +896,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_adv_router_linkstate_id,
show_ipv6_ospf6_database_adv_router_linkstate_id_cmd,
@@ -985,7 +980,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_type_id_router,
show_ipv6_ospf6_database_type_id_router_cmd,
@@ -1104,7 +1099,7 @@
"Specify Advertising Router as IPv4 address notation\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_type_adv_router_linkstate_id,
show_ipv6_ospf6_database_type_adv_router_linkstate_id_cmd,
@@ -1229,7 +1224,7 @@
"Specify Link state ID as IPv4 address notation\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_self_originated,
show_ipv6_ospf6_database_self_originated_cmd,
@@ -1386,7 +1381,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_type_self_originated_linkstate_id,
show_ipv6_ospf6_database_type_self_originated_linkstate_id_cmd,
@@ -1501,7 +1496,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_database_type_id_self_originated,
show_ipv6_ospf6_database_type_id_self_originated_cmd,
@@ -1614,7 +1609,7 @@
"Display details of LSAs\n"
"Dump LSAs\n"
"Display LSA's internal information\n"
- );
+ )
DEFUN (show_ipv6_ospf6_border_routers,
@@ -1675,7 +1670,7 @@
"Display routing table for ABR and ASBR\n"
"Specify Router-ID\n"
"Display Detail\n"
- );
+ )
DEFUN (show_ipv6_ospf6_linkstate,
show_ipv6_ospf6_linkstate_cmd,
@@ -1709,7 +1704,7 @@
"Display linkstate routing table\n"
"Display Router Entry\n"
"Specify Router ID as IPv4 address notation\n"
- );
+ )
ALIAS (show_ipv6_ospf6_linkstate,
show_ipv6_ospf6_linkstate_network_cmd,
@@ -1721,7 +1716,7 @@
"Display Network Entry\n"
"Specify Router ID as IPv4 address notation\n"
"Specify Link state ID as IPv4 address notation\n"
- );
+ )
DEFUN (show_ipv6_ospf6_linkstate_detail,
show_ipv6_ospf6_linkstate_detail_cmd,
@@ -1757,7 +1752,7 @@
/* Install ospf related commands. */
void
-ospf6_init ()
+ospf6_init (void)
{
ospf6_top_init ();
ospf6_area_init ();