summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2018-09-07 11:50:32 +0000
committerbenno <benno@openbsd.org>2018-09-07 11:50:32 +0000
commitb7a9bf19eef7e2a2bb9d4762cdb84f9ec6a0af9e (patch)
tree2c28ebb7998701e3be4065a7e1272b32627a5782
parentBackout recent cp(1) changes; they broke texlive's mktexlsr(1) (diff)
downloadwireguard-openbsd-b7a9bf19eef7e2a2bb9d4762cdb84f9ec6a0af9e.tar.xz
wireguard-openbsd-b7a9bf19eef7e2a2bb9d4762cdb84f9ec6a0af9e.zip
remove unused function find_prefixsetitem(), ok claudio@
-rw-r--r--usr.sbin/bgpd/bgpd.h4
-rw-r--r--usr.sbin/bgpd/parse.y15
2 files changed, 2 insertions, 17 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 9b5469f891c..4297a670d3a 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.335 2018/09/07 10:49:22 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.336 2018/09/07 11:50:32 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1141,8 +1141,6 @@ u_int16_t pftable_ref(u_int16_t);
/* parse.y */
int cmdline_symset(char *);
struct prefixset *find_prefixset(char *, struct prefixset_head *);
-struct prefixset_item *find_prefixsetitem(struct prefixset_item *i,
- struct prefixset_items_h *psitems);
/* pftable.c */
int pftable_exists(const char *);
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 5507245a4e9..ad4f3f4f6ad 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.336 2018/09/07 09:38:04 benno Exp $ */
+/* $OpenBSD: parse.y,v 1.337 2018/09/07 11:50:32 benno Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -3697,19 +3697,6 @@ find_prefixset(char *name, struct prefixset_head *p)
return (NULL);
}
-/* returns the prefixset_item from psitems that matches i */
-struct prefixset_item *
-find_prefixsetitem(struct prefixset_item *i, struct prefixset_items_h *psitems)
-{
- struct prefixset_item *psi;
-
- SIMPLEQ_FOREACH(psi, psitems, entry) {
- if (memcmp(&i->p, &psi->p, sizeof(psi->p)) == 0)
- return(psi);
- }
- return (NULL);
-}
-
int
get_id(struct peer *newpeer)
{