From 75a2b33dfb087f620a4778cb2a99fafa37d2a66e Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Mon, 12 Aug 2013 09:35:34 +0200 Subject: chain: xml: delete node Since the 'use' attribute in a chain can't be set, ignore it in the XML printing. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/chain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/chain.c b/src/chain.c index a6d99ca..e2296d3 100644 --- a/src/chain.c +++ b/src/chain.c @@ -756,11 +756,11 @@ static int nft_chain_snprintf_xml(char *buf, size_t size, struct nft_chain *c) ret = snprintf(buf, size, "%s" "%"PRIu64"%"PRIu64"" "%"PRIu64"%s" - "%s
%d%d" + "%s
%d" "%s", c->name, c->handle, c->bytes, c->packets, c->type, c->table, - c->prio, c->use, hooknum2str_array[c->hooknum]); + c->prio, hooknum2str_array[c->hooknum]); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); /* The parsing will fail both if there are something different -- cgit v1.2.3