diff options
author | 2006-01-28 18:54:28 +0000 | |
---|---|---|
committer | 2006-01-28 18:54:28 +0000 | |
commit | 2fa3c645bf23a0f9df28f78a3617522034c9b798 (patch) | |
tree | 9b58c4bb7ee0b031e0a92773d8f9a29696b68cef | |
parent | mention net.inet.ip.mforwarding. (diff) | |
download | wireguard-openbsd-2fa3c645bf23a0f9df28f78a3617522034c9b798.tar.xz wireguard-openbsd-2fa3c645bf23a0f9df28f78a3617522034c9b798.zip |
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) { |