diff options
author | Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> | 2013-04-19 01:37:23 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-04-19 01:55:20 +0200 |
commit | b0f2066ac0ebf3c5151ae2ece231b2317dfa3a5f (patch) | |
tree | a7541ffa730d8b0f72f2d7a05ee6c24bf9c14eff /src/expr/lookup.c | |
parent | 605e56925beeda0d184e24d6d923f973a336bcb7 (diff) |
src: remove trailing newlines, tabs and spaces from XML format
Delete all \n and \t from XML output, any reasonable XML viewer
already does the nifty formatting for us.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr/lookup.c')
-rw-r--r-- | src/expr/lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/lookup.c b/src/expr/lookup.c index 550c850..003554b 100644 --- a/src/expr/lookup.c +++ b/src/expr/lookup.c @@ -156,7 +156,7 @@ nft_rule_expr_lookup_snprintf_xml(char *buf, size_t size, { int len = size, offset = 0, ret; - ret = snprintf(buf, len, "<set>%s</set><sreg>%u</sreg><dreg>%u</dreg>\n", + ret = snprintf(buf, len, "<set>%s</set><sreg>%u</sreg><dreg>%u</dreg>", l->set_name, l->sreg, l->dreg); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); |