From 2e2a0ebf0b3b30a8e8d0e39de5b0fdc3b82ab14c Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Thu, 26 Oct 2017 10:10:42 +0200 Subject: nat plugin - fix test logic warning found by clang: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] Change-Id: I964651a4444b11da145edc329da83675cd830f78 Signed-off-by: Gabriel Ganne --- src/plugins/nat/nat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h index 9c50a0b77ec..aac46bfc4f8 100644 --- a/src/plugins/nat/nat.h +++ b/src/plugins/nat/nat.h @@ -409,7 +409,7 @@ typedef struct { @param s SNAT session @return 1 if SNAT session is created from static mapping otherwise 0 */ -#define snat_is_session_static(s) s->flags & SNAT_SESSION_FLAG_STATIC_MAPPING +#define snat_is_session_static(s) (s->flags & SNAT_SESSION_FLAG_STATIC_MAPPING) /** \brief Check if SNAT session for unknown protocol. @param s SNAT session -- cgit 1.2.3-korg