]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
rule: delete extra space in rule indentation
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Wed, 18 Mar 2015 10:43:24 +0000 (11:43 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 18 Mar 2015 13:55:10 +0000 (14:55 +0100)
Annoying extra space in rule indentation:

Example before this patch:

table ip6 test_table {
chain test_chain {
 counter tcp dport { 22, 80, 443} accept # handle 1
^
}
}

Example after this patch:

table ip6 test_table {
chain test_chain {
counter tcp dport { 22, 80, 443} accept # handle 1
}
}

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/rule.c

index 9f27019f4d0a709e623c872b7e75c2d892ea3d9f..0400dec49ef455f4f45461ac0e95db6729b8a270 100644 (file)
@@ -237,11 +237,11 @@ void rule_print(const struct rule *rule)
        const struct stmt *stmt;
 
        list_for_each_entry(stmt, &rule->stmts, list) {
-               printf(" ");
                stmt->ops->print(stmt);
+               printf(" ");
        }
        if (handle_output > 0)
-               printf(" # handle %" PRIu64, rule->handle.handle);
+               printf("# handle %" PRIu64, rule->handle.handle);
 }
 
 struct scope *scope_init(struct scope *scope, const struct scope *parent)