From 947b4fe19a742057093341975b4e33c962ef1446 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Fri, 27 Nov 2015 17:57:54 +0000 Subject: netlink: fix up indentation damage The conversion to the net libnftnl API has left a lot of indentation damage in the netlink functions. Fix it up. Signed-off-by: Patrick McHardy --- src/netlink_delinearize.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/netlink_delinearize.c') diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c index 614fbe00..4a85395f 100644 --- a/src/netlink_delinearize.c +++ b/src/netlink_delinearize.c @@ -174,7 +174,7 @@ static void netlink_parse_immediate(struct netlink_parse_ctx *ctx, nld.verdict = nftnl_expr_get_u32(nle, NFTNL_EXPR_IMM_VERDICT); if (nftnl_expr_is_set(nle, NFTNL_EXPR_IMM_CHAIN)) { nld.chain = nftnl_expr_get(nle, NFTNL_EXPR_IMM_CHAIN, - &nld.len); + &nld.len); } } else if (nftnl_expr_is_set(nle, NFTNL_EXPR_IMM_DATA)) { nld.value = nftnl_expr_get(nle, NFTNL_EXPR_IMM_DATA, &nld.len); @@ -347,7 +347,7 @@ static void netlink_parse_bitwise(struct netlink_parse_ctx *ctx, if (mpz_cmp_ui(o, 0)) { nld.value = nftnl_expr_get(nle, NFTNL_EXPR_BITWISE_XOR, - &nld.len); + &nld.len); or = netlink_alloc_value(loc, &nld); mpz_set(or->value, o); @@ -564,10 +564,8 @@ static void netlink_parse_counter(struct netlink_parse_ctx *ctx, struct stmt *stmt; stmt = counter_stmt_alloc(loc); - stmt->counter.packets = - nftnl_expr_get_u64(nle, NFTNL_EXPR_CTR_PACKETS); - stmt->counter.bytes = - nftnl_expr_get_u64(nle, NFTNL_EXPR_CTR_BYTES); + stmt->counter.packets = nftnl_expr_get_u64(nle, NFTNL_EXPR_CTR_PACKETS); + stmt->counter.bytes = nftnl_expr_get_u64(nle, NFTNL_EXPR_CTR_BYTES); list_add_tail(&stmt->list, &ctx->rule->stmts); } @@ -585,8 +583,7 @@ static void netlink_parse_log(struct netlink_parse_ctx *ctx, stmt->log.flags |= STMT_LOG_PREFIX; } if (nftnl_expr_is_set(nle, NFTNL_EXPR_LOG_GROUP)) { - stmt->log.group = - nftnl_expr_get_u16(nle, NFTNL_EXPR_LOG_GROUP); + stmt->log.group = nftnl_expr_get_u16(nle, NFTNL_EXPR_LOG_GROUP); stmt->log.flags |= STMT_LOG_GROUP; } if (nftnl_expr_is_set(nle, NFTNL_EXPR_LOG_SNAPLEN)) { @@ -653,8 +650,7 @@ static void netlink_parse_nat(struct netlink_parse_ctx *ctx, family = nftnl_expr_get_u32(nle, NFTNL_EXPR_NAT_FAMILY); if (nftnl_expr_is_set(nle, NFTNL_EXPR_NAT_FLAGS)) - stmt->nat.flags = nftnl_expr_get_u32(nle, - NFTNL_EXPR_NAT_FLAGS); + stmt->nat.flags = nftnl_expr_get_u32(nle, NFTNL_EXPR_NAT_FLAGS); reg1 = netlink_parse_register(nle, NFTNL_EXPR_NAT_REG_ADDR_MIN); if (reg1) { -- cgit v1.2.3