summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2019-01-03 22:49:00 +0000
committerkn <kn@openbsd.org>2019-01-03 22:49:00 +0000
commit39a868ffe99fd03ba9f6d96d0ff041ed3011e275 (patch)
tree64007d5fd05fc5f2576d18854a38c941f141f1ef
parentFix a collection of covering unveil bugs that prevent unveil's of upper (diff)
downloadwireguard-openbsd-39a868ffe99fd03ba9f6d96d0ff041ed3011e275.tar.xz
wireguard-openbsd-39a868ffe99fd03ba9f6d96d0ff041ed3011e275.zip
Unbreak build under OPT_DEBUG
In r1.39 I removed the `af' parameter from `unmask()' but accidently zapped the macro's closing paranthese. Since DEBUG() is needlessly under an OPT_DEBUG guard, this was not effecting normal builds. Add the missing ')' and remove the ifdef. OK sashan
-rw-r--r--sbin/pfctl/pfctl_optimize.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl_optimize.c b/sbin/pfctl/pfctl_optimize.c
index ae3e92d4833..42703c39452 100644
--- a/sbin/pfctl/pfctl_optimize.c
+++ b/sbin/pfctl/pfctl_optimize.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_optimize.c,v 1.39 2018/09/06 15:07:33 kn Exp $ */
+/* $OpenBSD: pfctl_optimize.c,v 1.40 2019/01/03 22:49:00 kn Exp $ */
/*
* Copyright (c) 2004 Mike Frantzen <frantzen@openbsd.org>
@@ -1232,11 +1232,9 @@ add_opt_table(struct pfctl *pf, struct pf_opt_tbl **tbl, sa_family_t af,
node_host.ifname = ifname;
node_host.weight = addr->weight;
-#ifdef OPT_DEBUG
DEBUG("<%s> adding %s/%d", (*tbl)->pt_name, inet_ntop(af,
&node_host.addr.v.a.addr, buf, sizeof(buf)),
- unmask(&node_host.addr.v.a.mask);
-#endif /* OPT_DEBUG */
+ unmask(&node_host.addr.v.a.mask));
if (append_addr_host((*tbl)->pt_buf, &node_host, 0, 0)) {
warn("failed to add host");