From 989b793a3bf689757b2b8f08a1c264743d75fa0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Neira=20Ayuso?= Date: Mon, 11 Nov 2013 21:09:35 +0100 Subject: src: unify parse and output types Unify parse and output types that are redundant to all existing nftables objects. Thus, all NFT_*_O_[XML|JSON|DEFAULT] are merged into NFT_OUTPUT_[JSON|XML] and NFT_PARSE_[JSON|XML]. Signed-off-by: Alvaro Neira Ayuso Signed-off-by: Pablo Neira Ayuso --- examples/nft-table-get.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/nft-table-get.c') diff --git a/examples/nft-table-get.c b/examples/nft-table-get.c index f57423b..c5bc89d 100644 --- a/examples/nft-table-get.c +++ b/examples/nft-table-get.c @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) uint32_t portid, seq, family; struct nft_table *t = NULL; int ret; - uint32_t type = NFT_TABLE_O_DEFAULT; + uint32_t type = NFT_OUTPUT_DEFAULT; if (argc < 2 || argc > 4) { fprintf(stderr, "%s [] []\n", @@ -78,11 +78,11 @@ int main(int argc, char *argv[]) } if (strcmp(argv[argc-1], "xml") == 0) { - type = NFT_TABLE_O_XML; + type = NFT_OUTPUT_XML; argv[argc-1] = NULL; argc--; }else if (strcmp(argv[argc-1], "json") == 0) { - type = NFT_TABLE_O_JSON; + type = NFT_OUTPUT_JSON; argv[argc-1] = NULL; argc--; } else if (strcmp(argv[argc - 1], "default") == 0) { -- cgit v1.2.3