diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-01-28 18:54:29 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-01-28 18:54:29 +0000 |
commit | 750fc45e86964dd122c1dc250fdba8be94fdf495 (patch) | |
tree | 38735d91009271ca580bcf3cecc3ef5210bf907d | |
parent | 071c70b8dca88ab873725d4018084d248506d9ed (diff) |
zap unused function
From: Andrey Matveev <evol@online.ptt.ru>
-rw-r--r-- | sbin/pfctl/pfctl.h | 3 | ||||
-rw-r--r-- | sbin/pfctl/pfctl_altq.c | 17 |
2 files changed, 2 insertions, 18 deletions
diff --git a/sbin/pfctl/pfctl.h b/sbin/pfctl/pfctl.h index c42d8d74472..8ea9a635a82 100644 --- a/sbin/pfctl/pfctl.h +++ b/sbin/pfctl/pfctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.h,v 1.38 2005/05/21 21:03:58 henning Exp $ */ +/* $OpenBSD: pfctl.h,v 1.39 2006/01/28 18:54:28 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -106,7 +106,6 @@ extern int loadopt; int check_commit_altq(int, int); void pfaltq_store(struct pf_altq *); -void pfaltq_free(struct pf_altq *); struct pf_altq *pfaltq_lookup(const char *); char *rate2str(double); diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c index 3f5b0875671..3f570c2691e 100644 --- a/sbin/pfctl/pfctl_altq.c +++ b/sbin/pfctl/pfctl_altq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_altq.c,v 1.86 2005/02/28 14:04:51 henning Exp $ */ +/* $OpenBSD: pfctl_altq.c,v 1.87 2006/01/28 18:54:28 henning Exp $ */ /* * Copyright (c) 2002 @@ -93,21 +93,6 @@ pfaltq_store(struct pf_altq *a) TAILQ_INSERT_TAIL(&altqs, altq, entries); } -void -pfaltq_free(struct pf_altq *a) -{ - struct pf_altq *altq; - - TAILQ_FOREACH(altq, &altqs, entries) { - if (strncmp(a->ifname, altq->ifname, IFNAMSIZ) == 0 && - strncmp(a->qname, altq->qname, PF_QNAME_SIZE) == 0) { - TAILQ_REMOVE(&altqs, altq, entries); - free(altq); - return; - } - } -} - struct pf_altq * pfaltq_lookup(const char *ifname) { |