[PATCH 1/2] fix indentation.

Alexander Nickulin anikulin at dlink.ru
Fri Dec 4 09:40:27 EST 2020


Modern compilers get nervous about bad indentation:

> warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]

introduced with 4f088d38aecd86f5377287f8a0ad8534fe441ad9
"netfilter: correct error in construction of NAT tuple"
---
 lib/netfilter/exp.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/netfilter/exp.c b/lib/netfilter/exp.c
index 9cfdd2b..15d6fb7 100644
--- a/lib/netfilter/exp.c
+++ b/lib/netfilter/exp.c
@@ -350,10 +350,10 @@ static int nfnl_exp_build_tuple(struct nl_msg *msg, const struct nfnl_exp *exp,
 
 	int type = exp_get_tuple_attr(cta);
 
-    if (cta == CTA_EXPECT_NAT)
-        tuple = nla_nest_start(msg, CTA_EXPECT_NAT_TUPLE);
-    else
-        tuple = nla_nest_start(msg, cta);
+	if (cta == CTA_EXPECT_NAT)
+		tuple = nla_nest_start(msg, CTA_EXPECT_NAT_TUPLE);
+	else
+		tuple = nla_nest_start(msg, cta);
 
 	if (!tuple)
 		goto nla_put_failure;
-- 
2.27.0




More information about the libnl mailing list