summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/lde.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2016-05-23 16:33:33 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2016-05-23 16:33:33 +0000
commit9e0636e7e7be4ffcb6f696d956772333828f27dd (patch)
tree734cf69424deb58bb56651b4ee7828075ddb1852 /usr.sbin/ldpd/lde.h
parente34b75e68e25f6ea1db06c2e244a17c644b4688e (diff)
Minor adjustments in l2vpn code.
* Define a new constant for the default pseudowire type; * On l2vpn_new(), initialize the l2vpn lists with LIST_NEW (cosmetic because the struct was calloc'ed); * Add a const qualifier to the second parameter of l2vpn_find(); * Remove l2vpn_if_del() and use just free() instead.
Diffstat (limited to 'usr.sbin/ldpd/lde.h')
-rw-r--r--usr.sbin/ldpd/lde.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/lde.h b/usr.sbin/ldpd/lde.h
index d43eec303cd..36dbbf040ab 100644
--- a/usr.sbin/ldpd/lde.h
+++ b/usr.sbin/ldpd/lde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lde.h,v 1.30 2016/05/23 16:14:36 renato Exp $ */
+/* $OpenBSD: lde.h,v 1.31 2016/05/23 16:33:32 renato Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -161,12 +161,11 @@ void lde_label_list_free(struct lde_nbr *);
/* l2vpn.c */
struct l2vpn *l2vpn_new(const char *);
-struct l2vpn *l2vpn_find(struct ldpd_conf *, char *);
+struct l2vpn *l2vpn_find(struct ldpd_conf *, const char *);
void l2vpn_del(struct l2vpn *);
void l2vpn_init(struct l2vpn *);
struct l2vpn_if *l2vpn_if_new(struct l2vpn *, struct kif *);
struct l2vpn_if *l2vpn_if_find(struct l2vpn *, unsigned int);
-void l2vpn_if_del(struct l2vpn_if *l);
struct l2vpn_pw *l2vpn_pw_new(struct l2vpn *, struct kif *);
struct l2vpn_pw *l2vpn_pw_find(struct l2vpn *, unsigned int);
void l2vpn_pw_del(struct l2vpn_pw *);