netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft PATCH v2] rule: delete extra space in rule indentation
@ 2015-03-18 10:43 Arturo Borrero Gonzalez
  2015-03-18 17:16 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 3+ messages in thread
From: Arturo Borrero Gonzalez @ 2015-03-18 10:43 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kaber, pablo

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>
---
v2: include examples in patch description.

 src/rule.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rule.c b/src/rule.c
index 8d76fd0..9403c1e 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)


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-19 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-18 10:43 [nft PATCH v2] rule: delete extra space in rule indentation Arturo Borrero Gonzalez
2015-03-18 17:16 ` Pablo Neira Ayuso
2015-03-19 12:16   ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).