From: benno Date: Fri, 7 Sep 2018 11:50:32 +0000 (+0000) Subject: remove unused function find_prefixsetitem(), ok claudio@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b7a9bf19eef7e2a2bb9d4762cdb84f9ec6a0af9e;p=openbsd remove unused function find_prefixsetitem(), ok claudio@ --- 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 @@ -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 @@ -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) {