summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/neighbor.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2015-07-21 05:02:58 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2015-07-21 05:02:58 +0000
commitc58f08594fe2c7a80711ce3d2a0c3fa199a54de7 (patch)
tree27f91beb15af15ad82007aea87be29e9e0f5cae1 /usr.sbin/ldpd/neighbor.c
parentd4fd4a237d37327e4d72a90fc63e626fc54a9e24 (diff)
Rename, move and reuse mapping list functions.
ok claudio@
Diffstat (limited to 'usr.sbin/ldpd/neighbor.c')
-rw-r--r--usr.sbin/ldpd/neighbor.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/usr.sbin/ldpd/neighbor.c b/usr.sbin/ldpd/neighbor.c
index c7c0c058152..5e2797d56f2 100644
--- a/usr.sbin/ldpd/neighbor.c
+++ b/usr.sbin/ldpd/neighbor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: neighbor.c,v 1.51 2015/07/21 05:01:46 renato Exp $ */
+/* $OpenBSD: neighbor.c,v 1.52 2015/07/21 05:02:57 renato Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -575,30 +575,6 @@ nbr_send_labelmappings(struct nbr *nbr)
NULL, 0);
}
-void
-nbr_mapping_add(struct nbr *nbr, struct mapping_head *mh, struct map *map)
-{
- struct mapping_entry *me;
-
- me = calloc(1, sizeof(*me));
- if (me == NULL)
- fatal("nbr_mapping_add");
- me->map = *map;
-
- TAILQ_INSERT_TAIL(mh, me, entry);
-}
-
-void
-mapping_list_clr(struct mapping_head *mh)
-{
- struct mapping_entry *me;
-
- while ((me = TAILQ_FIRST(mh)) != NULL) {
- TAILQ_REMOVE(mh, me, entry);
- free(me);
- }
-}
-
struct nbr_params *
nbr_params_new(struct in_addr addr)
{