aboutsummaryrefslogtreecommitdiff
path: root/sbin/pfilctl/pfilctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/pfilctl/pfilctl.c')
-rw-r--r--sbin/pfilctl/pfilctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/pfilctl/pfilctl.c b/sbin/pfilctl/pfilctl.c
index c2fe04ecc777..1af2190072b6 100644
--- a/sbin/pfilctl/pfilctl.c
+++ b/sbin/pfilctl/pfilctl.c
@@ -25,7 +25,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <net/if.h>
@@ -151,8 +150,8 @@ listhooks(int argc __unused, char *argv[] __unused)
u_int nhooks, i;
plh.pio_nhooks = 0;
- if (ioctl(dev, PFILIOC_LISTHEADS, &plh) != 0)
- err(1, "ioctl(PFILIOC_LISTHEADS)");
+ if (ioctl(dev, PFILIOC_LISTHOOKS, &plh) != 0)
+ err(1, "ioctl(PFILIOC_LISTHOOKS)");
retry:
plh.pio_hooks = calloc(plh.pio_nhooks, sizeof(struct pfilioc_hook));
if (plh.pio_hooks == NULL)