mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
xt_LOGMARK: resolve new gcc7 warnings
xt_LOGMARK.c:56:32: warning: increment of a boolean expression [-Wbool-operation] printk("%s""SEEN_REPLY", prev++ ? "," : ""); xt_LOGMARK.c:58:29: warning: increment of a boolean expression [-Wbool-operation] printk("%s""ASSURED", prev++ ? "," : ""); xt_LOGMARK.c:60:31: warning: increment of a boolean expression [-Wbool-operation] printk("%s""CONFIRMED", prev++ ? "," : "");
This commit is contained in:
@@ -52,12 +52,18 @@ static void logmark_ct(const struct nf_conn *ct, enum ip_conntrack_info ctinfo)
|
||||
printk("EXPECTED");
|
||||
prev = true;
|
||||
}
|
||||
if (ct->status & IPS_SEEN_REPLY)
|
||||
printk("%s""SEEN_REPLY", prev++ ? "," : "");
|
||||
if (ct->status & IPS_ASSURED)
|
||||
printk("%s""ASSURED", prev++ ? "," : "");
|
||||
if (ct->status & IPS_CONFIRMED)
|
||||
printk("%s""CONFIRMED", prev++ ? "," : "");
|
||||
if (ct->status & IPS_SEEN_REPLY) {
|
||||
printk("%s""SEEN_REPLY", prev ? "," : "");
|
||||
prev = true;
|
||||
}
|
||||
if (ct->status & IPS_ASSURED) {
|
||||
printk("%s""ASSURED", prev ? "," : "");
|
||||
prev = true;
|
||||
}
|
||||
if (ct->status & IPS_CONFIRMED) {
|
||||
printk("%s""CONFIRMED", prev ? "," : "");
|
||||
prev = true;
|
||||
}
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)
|
||||
printk(" lifetime=%lus", nf_ct_expires(ct) / HZ);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user