summaryrefslogtreecommitdiffstats
path: root/examples/nft-rule-get.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-rule-get.c')
-rw-r--r--examples/nft-rule-get.c8
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];