From fc7d496788b8abb3f009b73898508032eced0c6c Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Tue, 6 Aug 2013 12:52:45 +0200 Subject: src: xml: delete unneeded XML prefixes This patch changes some XML nodes with prefixes, as the example below ilustrates. Before: After: Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/table.c') diff --git a/src/table.c b/src/table.c index baad801..85993eb 100644 --- a/src/table.c +++ b/src/table.c @@ -249,7 +249,7 @@ static int nft_table_xml_parse(struct nft_table *t, char *xml) t->family = family; t->flags |= (1 << NFT_TABLE_ATTR_FAMILY); - if (nft_mxml_num_parse(tree, "table_flags", MXML_DESCEND, BASE_DEC, + if (nft_mxml_num_parse(tree, "flags", MXML_DESCEND, BASE_DEC, &t->table_flags, NFT_TYPE_U32) != 0) goto err; @@ -349,7 +349,7 @@ static int nft_table_snprintf_json(char *buf, size_t size, struct nft_table *t) static int nft_table_snprintf_xml(char *buf, size_t size, struct nft_table *t) { return snprintf(buf, size, "%s%s" - "%d
", + "%d", t->name, nft_family2str(t->family), t->table_flags); } -- cgit v1.2.3