diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2015-03-21 18:34:02 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2015-03-21 18:34:02 +0000 |
commit | bfb4b6ce7018dbf1ad998707d797d871a5f3297a (patch) | |
tree | 7a0c26ce8fa89a73e84765bad35ff7d43a366406 /usr.sbin/ldpd/neighbor.c | |
parent | 282d7551d49e738c78d84a3db40f079acd49375e (diff) |
Remove unused variables and functions.
Diffstat (limited to 'usr.sbin/ldpd/neighbor.c')
-rw-r--r-- | usr.sbin/ldpd/neighbor.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/usr.sbin/ldpd/neighbor.c b/usr.sbin/ldpd/neighbor.c index db1bfbbff40..e9fd44574d3 100644 --- a/usr.sbin/ldpd/neighbor.c +++ b/usr.sbin/ldpd/neighbor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: neighbor.c,v 1.44 2015/02/09 11:54:24 claudio Exp $ */ +/* $OpenBSD: neighbor.c,v 1.45 2015/03/21 18:34:01 renato Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -553,33 +553,6 @@ nbr_mapping_add(struct nbr *nbr, struct mapping_head *mh, struct map *map) TAILQ_INSERT_TAIL(mh, me, entry); } -struct mapping_entry * -nbr_mapping_find(struct nbr *nbr, struct mapping_head *mh, struct map *map) -{ - struct mapping_entry *me = NULL; - - TAILQ_FOREACH(me, mh, entry) { - if (me->map.prefix.s_addr == map->prefix.s_addr && - me->map.prefixlen == map->prefixlen) - return (me); - } - - return (NULL); -} - -void -nbr_mapping_del(struct nbr *nbr, struct mapping_head *mh, struct map *map) -{ - struct mapping_entry *me; - - me = nbr_mapping_find(nbr, mh, map); - if (me == NULL) - return; - - TAILQ_REMOVE(mh, me, entry); - free(me); -} - void mapping_list_clr(struct mapping_head *mh) { |