Improve readability of bitwise operation
PATCH 2/2 Improve readability of bitwise operation
Signed-off-by Thomas Jarosch <[email protected]>
--- extensions/libipt_CLUSTERIP.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
extensions/libipt_CLUSTERIP.c +2 -2
@@ -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
Pablo Neira Ayuso
maintainerQuoted 1 line · Thomas Jarosch
Signed-off-by Thomas Jarosch <[email protected]>
Also applied, thanks.