From f3ff9e9f6251ad4e757fa4a3f1db07dc9b7a6ed0 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Wed, 18 Mar 2015 11:43:24 +0100 Subject: rule: delete extra space in rule indentation 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 Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 9f27019f..0400dec4 100644 --- a/src/rule.c +++ b/src/rule.c @@ -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) -- cgit v1.2.3