Skip to contentSkip to conversation

Improve readability of bitwise operation

PATCH Applied Thomas Jarosch 2 participants 2 messages Sep 5, 2011 – Sep 28, 2011 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Improve readability of bitwise operation

---
 extensions/libipt_CLUSTERIP.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
extensions/libipt_CLUSTERIP.c +2 -2
index 301e0e1..f4b638b 100644
@@ -144,7 +144,7 @@ static void CLUSTERIP_print(const void *ip,
 	const struct ipt_clusterip_tgt_info *cipinfo =
 		(const struct ipt_clusterip_tgt_info *)target->data;
 	
-	if (!cipinfo->flags & CLUSTERIP_FLAG_NEW) {
+	if (!(cipinfo->flags & CLUSTERIP_FLAG_NEW)) {
 		printf(" CLUSTERIP");
 		return;
 	}
@@ -164,7 +164,7 @@ static void CLUSTERIP_save(const void *ip, const struct xt_entry_target *target)
 
 	/* if this is not a new entry, we don't need to save target
 	 * parameters */
-	if (!cipinfo->flags & CLUSTERIP_FLAG_NEW)
+	if (!(cipinfo->flags & CLUSTERIP_FLAG_NEW))
 		return;
 
 	printf(" --new --hashmode %s --clustermac %s --total-nodes %d --local-node %d --hash-init %u",
Signature · 1 line
1.7.4.4