From 80077787f8f21da1efd8dc27a4c5767ab47a1df6 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 9 Oct 2018 00:03:28 +0200 Subject: src: remove json support We have better json support in libnftables these days. Signed-off-by: Pablo Neira Ayuso --- examples/nft-set-get.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/nft-set-get.c') diff --git a/examples/nft-set-get.c b/examples/nft-set-get.c index c4ad8ee..bb33674 100644 --- a/examples/nft-set-get.c +++ b/examples/nft-set-get.c @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) int ret; if (argc < 2 || argc > 3) { - fprintf(stderr, "%s []\n", argv[0]); + fprintf(stderr, "%s \n", argv[0]); return EXIT_FAILURE; } t = nftnl_set_alloc(); @@ -81,9 +81,6 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - if (argc == 3 && strcmp(argv[2], "json") == 0) - type = NFTNL_OUTPUT_JSON; - nlh = nftnl_set_nlmsg_build_hdr(buf, NFT_MSG_GETSET, family, NLM_F_DUMP|NLM_F_ACK, seq); /* Use this below if you want to obtain sets per table */ -- cgit v1.2.3