summaryrefslogtreecommitdiff
path: root/ripngd/ripng_peer.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2008-08-15 13:45:30 +0100
committerPaul Jakma <paul@quagga.net>2008-08-22 19:52:58 +0100
commit6ac29a51075def99217a4ab1015635db3b3e83ed (patch)
tree1152b55eb3a2099c67a0ba8e62d7e41f07e00135 /ripngd/ripng_peer.c
parent1423c809cc4ddc2e013ba6264c49a11e5719c6f2 (diff)
[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.
Diffstat (limited to 'ripngd/ripng_peer.c')
-rw-r--r--ripngd/ripng_peer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ripngd/ripng_peer.c b/ripngd/ripng_peer.c
index 34f5ac6c..1e58bb87 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 @@ ripng_peer_new ()
return new;
}
-void
+static void
ripng_peer_free (struct ripng_peer *peer)
{
XFREE (MTYPE_RIPNG_PEER, peer);
@@ -86,7 +86,7 @@ ripng_peer_lookup_next (struct in6_addr *addr)
/* RIPng peer is timeout.
* Garbage collector.
**/
-int
+static int
ripng_peer_timeout (struct thread *t)
{
struct ripng_peer *peer;
@@ -99,7 +99,7 @@ ripng_peer_timeout (struct thread *t)
}
/* 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 @@ ripng_peer_bad_packet (struct sockaddr_in6 *from)
}
/* 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 @@ ripng_peer_display (struct vty *vty)
}
}
-int
+static int
ripng_peer_list_cmp (struct ripng_peer *p1, struct ripng_peer *p2)
{
return addr6_cmp(&p1->addr, &p2->addr) > 0;