summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl_radix.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-03 21:43:12 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-03 21:43:12 +0000
commit374f06bea0e92ebcfcacd14e756f4f236a9f6697 (patch)
tree240ecd003dbe9e26f1be0cf5785a063c60177692 /sbin/pfctl/pfctl_radix.c
parent53b24bf74006b8fe01c11b5912d6fdd335766f47 (diff)
knf
Diffstat (limited to 'sbin/pfctl/pfctl_radix.c')
-rw-r--r--sbin/pfctl/pfctl_radix.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/sbin/pfctl/pfctl_radix.c b/sbin/pfctl/pfctl_radix.c
index d84cb433c7b..fbaf62c7825 100644
--- a/sbin/pfctl/pfctl_radix.c
+++ b/sbin/pfctl/pfctl_radix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_radix.c,v 1.1 2003/01/03 21:37:44 cedric Exp $ */
+/* $OpenBSD: pfctl_radix.c,v 1.2 2003/01/03 21:43:11 deraadt Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
@@ -283,20 +283,20 @@ int
pfr_clr_astats(struct pfr_table *tbl, struct pfr_addr *addr, int size,
int *nzero, int flags)
{
- struct pfioc_table io;
-
- if (tbl == NULL || size < 0 || (size && addr == NULL))
- RETURN_EINVAL;
- bzero(&io, sizeof io);
- io.pfrio_flags = flags;
- io.pfrio_table = *tbl;
- io.pfrio_buffer = addr;
- io.pfrio_size = size;
- if (_pfr_ioctl(DIOCRCLRTSTATS, &io))
- return (-1);
- if (nzero != NULL)
- *nzero = io.pfrio_nzero;
- return (0);
+ struct pfioc_table io;
+
+ if (tbl == NULL || size < 0 || (size && addr == NULL))
+ RETURN_EINVAL;
+ bzero(&io, sizeof io);
+ io.pfrio_flags = flags;
+ io.pfrio_table = *tbl;
+ io.pfrio_buffer = addr;
+ io.pfrio_size = size;
+ if (_pfr_ioctl(DIOCRCLRTSTATS, &io))
+ return (-1);
+ if (nzero != NULL)
+ *nzero = io.pfrio_nzero;
+ return (0);
}
int