diff options
author | julian <julian@FreeBSD.org> | 2001-03-03 05:50:47 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-03-03 05:50:47 +0000 |
commit | 9a72858cee48fed5669ce1a655e883f2e9ea0458 (patch) | |
tree | 285b278c8fbbf1cd4ad0a261c7874146bca1fc60 /sys/netgraph | |
parent | 2c96c2d1775e08b05f1405f4555b497b14d6dbc4 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/netgraph/netgraph.h | 2 |
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) \ |