]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
src: white-space fixes.
authorJeremy Sowden <jeremy@azazel.net>
Sun, 19 Jan 2020 22:57:03 +0000 (22:57 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Jan 2020 19:16:02 +0000 (20:16 +0100)
Remove some trailing white-space and fix some indentation.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c
src/netlink_delinearize.c
src/netlink_linearize.c

index e7881543d2de63ee4d7c481acc2e4d0b568e5e00..09dd493f0757e337b5daf50ebda14ff6aa2500a3 100644 (file)
@@ -2340,14 +2340,13 @@ static int stmt_evaluate_meta(struct eval_ctx *ctx, struct stmt *stmt)
 static int stmt_evaluate_ct(struct eval_ctx *ctx, struct stmt *stmt)
 {
        if (stmt_evaluate_arg(ctx, stmt,
-                                stmt->ct.tmpl->dtype,
-                                stmt->ct.tmpl->len,
-                                stmt->ct.tmpl->byteorder,
-                                &stmt->ct.expr) < 0)
+                             stmt->ct.tmpl->dtype,
+                             stmt->ct.tmpl->len,
+                             stmt->ct.tmpl->byteorder,
+                             &stmt->ct.expr) < 0)
                return -1;
 
-       if (stmt->ct.key == NFT_CT_SECMARK &&
-           expr_is_constant(stmt->ct.expr))
+       if (stmt->ct.key == NFT_CT_SECMARK && expr_is_constant(stmt->ct.expr))
                return stmt_error(ctx, stmt,
                                  "ct secmark must not be set to constant value");
 
index 88dbd5a8ecdf38f150dcad32fdfeb42f08a4adce..16bdcb223d0322a81719632ba1ae84aece3a31be 100644 (file)
@@ -171,7 +171,7 @@ static void netlink_parse_immediate(struct netlink_parse_ctx *ctx,
        struct expr *expr;
 
        if (nftnl_expr_is_set(nle, NFTNL_EXPR_IMM_VERDICT)) {
-               nld.verdict = nftnl_expr_get_u32(nle, NFTNL_EXPR_IMM_VERDICT); 
+               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);
index cb1b7fe1748b204e59d8e4d805fc485c753bc0b7..9261796491c923d3be58c688b4715edebbaa12b4 100644 (file)
@@ -1243,7 +1243,7 @@ static void netlink_gen_queue_stmt(struct netlink_linearize_ctx *ctx,
 }
 
 static void netlink_gen_ct_stmt(struct netlink_linearize_ctx *ctx,
-                                 const struct stmt *stmt)
+                               const struct stmt *stmt)
 {
        struct nftnl_expr *nle;
        enum nft_registers sreg;