summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl.c
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2019-01-10 22:22:52 +0000
committerkn <kn@cvs.openbsd.org>2019-01-10 22:22:52 +0000
commitd8ec5cced53c9b968b538b250734d4bdb7f2c932 (patch)
tree0f9f6971f5f2490f45339b4786591f9cb6cc0f00 /sbin/pfctl/pfctl.c
parent76a67816e296e0f73238356b76cd37475e412c79 (diff)
Zap unnused iface function parameter from pfctl_kill_src_nodes()
Killing source tracking entries per interface does not make sense and `-i interface' along with `-K key' is completely ignored anyway. There since import in 2006, probably just copy/pasta. OK sashan
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r--sbin/pfctl/pfctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 78f939e76a9..349d73ac2bd 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.362 2019/01/02 23:08:00 kn Exp $ */
+/* $OpenBSD: pfctl.c,v 1.363 2019/01/10 22:22:51 kn Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -67,7 +67,7 @@ void pfctl_clear_rules(int, int, char *);
void pfctl_clear_src_nodes(int, int);
void pfctl_clear_states(int, const char *, int);
void pfctl_addrprefix(char *, struct pf_addr *);
-void pfctl_kill_src_nodes(int, const char *, int);
+void pfctl_kill_src_nodes(int, int);
void pfctl_net_kill_states(int, const char *, int, int);
void pfctl_label_kill_states(int, const char *, int, int);
void pfctl_id_kill_states(int, int);
@@ -405,7 +405,7 @@ pfctl_addrprefix(char *addr, struct pf_addr *mask)
}
void
-pfctl_kill_src_nodes(int dev, const char *iface, int opts)
+pfctl_kill_src_nodes(int dev, int opts)
{
struct pfioc_src_node_kill psnk;
struct addrinfo *res[2], *resp[2];
@@ -2661,7 +2661,7 @@ main(int argc, char *argv[])
}
if (src_node_killers)
- pfctl_kill_src_nodes(dev, ifaceopt, opts);
+ pfctl_kill_src_nodes(dev, opts);
if (tblcmdopt != NULL) {
error = pfctl_table(argc, argv, tableopt,