summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netgraph.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-03-03 05:50:47 +0000
committerjulian <julian@FreeBSD.org>2001-03-03 05:50:47 +0000
commit9a72858cee48fed5669ce1a655e883f2e9ea0458 (patch)
tree285b278c8fbbf1cd4ad0a261c7874146bca1fc60 /sys/netgraph/netgraph.h
parent2c96c2d1775e08b05f1405f4555b497b14d6dbc4 (diff)
downloadFreeBSD-src-9a72858cee48fed5669ce1a655e883f2e9ea0458.zip
FreeBSD-src-9a72858cee48fed5669ce1a655e883f2e9ea0458.tar.gz
Add parenthesis to a macro.
This took me 2 whole days to track down. (bleah)
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r--sys/netgraph/netgraph.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index faef2e5..02a55f5 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -134,7 +134,7 @@ void ng_unref_hook(hook_p hook); /* don't move this */
#define _NG_HOOK_SET_RCVDATA(hook, val) do {(hook)->hk_rcvdata = val;} while (0)
#define _NG_HOOK_PRIVATE(hook) ((hook)->hk_private)
#define _NG_HOOK_NOT_VALID(hook) ((hook)->hk_flags & HK_INVALID)
-#define _NG_HOOK_IS_VALID(hook) (!(hook)->hk_flags & HK_INVALID)
+#define _NG_HOOK_IS_VALID(hook) (!((hook)->hk_flags & HK_INVALID))
#define _NG_HOOK_NODE(hook) ((hook)->hk_node) /* only rvalue! */
#define _NG_HOOK_PEER(hook) ((hook)->hk_peer) /* only rvalue! */
#define _NG_HOOK_FORCE_WRITER(hook) \
OpenPOWER on IntegriCloud