[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/ripngd/ripng_peer.c b/ripngd/ripng_peer.c
index 34f5ac6..1e58bb8 100644
--- a/ripngd/ripng_peer.c
+++ b/ripngd/ripng_peer.c
@@ -39,8 +39,8 @@
/* Linked list of RIPng peer. */
struct list *peer_list;
-struct ripng_peer *
-ripng_peer_new ()
+static struct ripng_peer *
+ripng_peer_new (void)
{
struct ripng_peer *new;
@@ -49,7 +49,7 @@
return new;
}
-void
+static void
ripng_peer_free (struct ripng_peer *peer)
{
XFREE (MTYPE_RIPNG_PEER, peer);
@@ -86,7 +86,7 @@
/* RIPng peer is timeout.
* Garbage collector.
**/
-int
+static int
ripng_peer_timeout (struct thread *t)
{
struct ripng_peer *peer;
@@ -99,7 +99,7 @@
}
/* Get RIPng peer. At the same time update timeout thread. */
-struct ripng_peer *
+static struct ripng_peer *
ripng_peer_get (struct in6_addr *addr)
{
struct ripng_peer *peer;
@@ -153,7 +153,7 @@
}
/* Display peer uptime. */
-char *
+static char *
ripng_peer_uptime (struct ripng_peer *peer, char *buf, size_t len)
{
time_t uptime;
@@ -206,7 +206,7 @@
}
}
-int
+static int
ripng_peer_list_cmp (struct ripng_peer *p1, struct ripng_peer *p2)
{
return addr6_cmp(&p1->addr, &p2->addr) > 0;