From 2b7b0f271293e996f1601c003e724923728df80f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 4 Mar 2016 10:23:21 +0100 Subject: rule: simplify ("rule: delete extra space in sets printing") This simplifies bd23f7628570 ("rule: delete extra space in sets printing") by passing the whitespace from set_print_plain() called from the monitoring path. Signed-off-by: Pablo Neira Ayuso Acked-by: Arturo Borrero Gonzalez --- src/rule.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 2f03b985..0b785495 100644 --- a/src/rule.c +++ b/src/rule.c @@ -269,9 +269,6 @@ static void set_print_declaration(const struct set *set, printf(" %s {%s", set->handle.set, opts->nl); - if (!opts->nl[0]) - printf(" "); - printf("%s%stype %s", opts->tab, opts->tab, set->keytype->name); if (set->flags & SET_F_MAP) printf(" : %s", set->datatype->name); @@ -352,7 +349,7 @@ void set_print_plain(const struct set *s) { struct print_fmt_options opts = { .tab = "", - .nl = "", + .nl = " ", .table = s->handle.table, .family = family2str(s->handle.family), .stmt_separator = ";", -- cgit v1.2.3