diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-09 00:03:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-15 14:04:27 +0200 |
commit | 80077787f8f21da1efd8dc27a4c5767ab47a1df6 (patch) | |
tree | 01d9b399a1aad23d7ea1d1e1daa0ad98bec69e0a /examples/nft-rule-get.c | |
parent | aaf20ad0dc22d2ebcad1b2c43288e984f0efe2c3 (diff) |
src: remove json support
We have better json support in libnftables these days.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-rule-get.c')
-rw-r--r-- | examples/nft-rule-get.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/nft-rule-get.c b/examples/nft-rule-get.c index aa49612..8a980ef 100644 --- a/examples/nft-rule-get.c +++ b/examples/nft-rule-get.c @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) int ret, family; if (argc < 2 || argc > 5) { - fprintf(stderr, "Usage: %s <family> [<table> <chain>] [json]\n", + fprintf(stderr, "Usage: %s <family> [<table> <chain>]\n", argv[0]); exit(EXIT_FAILURE); } @@ -102,12 +102,6 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - /* json specified */ - if (argc == 3 || argc == 5) { - if (strcmp(argv[argc - 1], "json") == 0) - type = NFTNL_OUTPUT_JSON; - } - /* at least [<table> <chain>] specified */ if (argc >= 4) { table = argv[2]; |