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/target.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/target.c')
-rw-r--r-- | src/expr/target.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/target.c b/src/expr/target.c index 86c9bc8..d3de8e8 100644 --- a/src/expr/target.c +++ b/src/expr/target.c @@ -193,7 +193,7 @@ int nft_rule_exp_target_snprintf_xml(char *buf, size_t len, int offset = 0; uint8_t *data = (uint8_t *)tg->data; - ret = snprintf(buf, len, "\t\t<name>%s</name> <rev>%u</rev> <info>0x", + ret = snprintf(buf, len, "<name>%s</name><rev>%u</rev><info>0x", tg->name, tg->rev); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); @@ -202,7 +202,7 @@ int nft_rule_exp_target_snprintf_xml(char *buf, size_t len, SNPRINTF_BUFFER_SIZE(ret, size, len, offset); } - ret = snprintf(buf+offset, len, "</info>" ); + ret = snprintf(buf+offset, len, "</info>"); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); return offset; |