summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorAlexandr Nedvedicky <sashan@cvs.openbsd.org>2021-11-11 12:49:54 +0000
committerAlexandr Nedvedicky <sashan@cvs.openbsd.org>2021-11-11 12:49:54 +0000
commit7f919c68db9a7c1b020686cf2821b554a0f077c6 (patch)
treefc2798acb14a131341057a7770829e1210e359ad /sbin/pfctl
parent72e2e2b10d9bc6b6ae0cb8468c3d4f7d2c90e544 (diff)
add tests to cover DIOCCHANGERULE ioctl(2)
OK bluhm@
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pfctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index bcd147877b0..9756425ab0f 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.384 2021/10/25 14:50:29 sashan Exp $ */
+/* $OpenBSD: pfctl.c,v 1.385 2021/11/11 12:49:53 sashan Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -2459,6 +2459,7 @@ pfctl_reset(int dev, int opts)
pfctl_clear_interface_flags(dev, opts);
}
+#ifndef REGRESS_NOMAIN
int
main(int argc, char *argv[])
{
@@ -2889,6 +2890,7 @@ main(int argc, char *argv[])
exit(exit_val);
}
+#endif /* REGRESS_NOMAIN */
char *
pf_strerror(int errnum)