summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2005-01-06 08:30:22 +0000
committermcbride <mcbride@openbsd.org>2005-01-06 08:30:22 +0000
commit990a50709d3e0d11b052b740d34a7af29206e46e (patch)
tree0eec6df78ba8e402b3b46e9995c991288299b194
parentrecover MLINKS for inet6_*_space.3 (diff)
downloadwireguard-openbsd-990a50709d3e0d11b052b740d34a7af29206e46e.tar.xz
wireguard-openbsd-990a50709d3e0d11b052b740d34a7af29206e46e.zip
Missing braces in pfctl_load_debug(), pointed out by camield@
-rw-r--r--sbin/pfctl/pfctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 3b6321aa11f..a6dac718f03 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.231 2005/01/05 18:23:10 mcbride Exp $ */
+/* $OpenBSD: pfctl.c,v 1.232 2005/01/06 08:30:22 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1410,9 +1410,10 @@ pfctl_set_debug(struct pfctl *pf, char *d)
int
pfctl_load_debug(struct pfctl *pf, unsigned int level)
{
- if (ioctl(pf->dev, DIOCSETDEBUG, &level))
+ if (ioctl(pf->dev, DIOCSETDEBUG, &level)) {
warnx("DIOCSETDEBUG");
return (1);
+ }
return (0);
}