diff mbox

[nft] rule: delete extra space in rule indentation

Message ID 20150317212327.20080.81689.stgit@nfdev.cica.es
State Superseded
Delegated to: Pablo Neira
Headers show

Commit Message

Arturo Borrero March 17, 2015, 9:23 p.m. UTC
Annoying extra space in rule indentation.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 src/rule.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Pablo Neira Ayuso March 18, 2015, 10:10 a.m. UTC | #1
On Tue, Mar 17, 2015 at 10:23:27PM +0100, Arturo Borrero Gonzalez wrote:
> Annoying extra space in rule indentation.

What "extra space" are you refering to?

Could you include a small proof of it in the description? Thanks.

> Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
> ---
>  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)
> 
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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)