[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/ospf6_area.c b/ospf6d/ospf6_area.c
index 94283db..3bfc0ca 100644
--- a/ospf6d/ospf6_area.c
+++ b/ospf6d/ospf6_area.c
@@ -54,7 +54,7 @@
}
/* schedule routing table recalculation */
-void
+static void
ospf6_area_lsdb_hook_add (struct ospf6_lsa *lsa)
{
switch (ntohs (lsa->header->type))
@@ -84,7 +84,7 @@
}
}
-void
+static void
ospf6_area_lsdb_hook_remove (struct ospf6_lsa *lsa)
{
switch (ntohs (lsa->header->type))
@@ -114,14 +114,14 @@
}
}
-void
+static void
ospf6_area_route_hook_add (struct ospf6_route *route)
{
struct ospf6_route *copy = ospf6_route_copy (route);
ospf6_route_add (copy, ospf6->route_table);
}
-void
+static void
ospf6_area_route_hook_remove (struct ospf6_route *route)
{
struct ospf6_route *copy;
@@ -230,7 +230,7 @@
return (struct ospf6_area *) NULL;
}
-struct ospf6_area *
+static struct ospf6_area *
ospf6_area_get (u_int32_t area_id, struct ospf6 *o)
{
struct ospf6_area *oa;
@@ -364,7 +364,7 @@
OSPF6_AREA_ID_STR
"Configured address range\n"
"Specify IPv6 prefix\n"
- );
+ )
DEFUN (no_area_range,
no_area_range_cmd,
@@ -746,7 +746,7 @@
}
void
-ospf6_area_init ()
+ospf6_area_init (void)
{
install_element (VIEW_NODE, &show_ipv6_ospf6_spf_tree_cmd);
install_element (VIEW_NODE, &show_ipv6_ospf6_area_spf_tree_cmd);