diff options
Diffstat (limited to 'examples/nft-ruleset-get.c')
-rw-r--r-- | examples/nft-ruleset-get.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/examples/nft-ruleset-get.c b/examples/nft-ruleset-get.c index 9e80bb6..7098437 100644 --- a/examples/nft-ruleset-get.c +++ b/examples/nft-ruleset-get.c @@ -344,20 +344,10 @@ int main(int argc, char *argv[]) int ret; if (argc > 2) { - fprintf(stderr, "%s {json}\n", - argv[0]); + fprintf(stderr, "%s\n", argv[0]); exit(EXIT_FAILURE); } - if (argc == 2) { - if (strcmp(argv[1], "json") == 0) - type = NFTNL_OUTPUT_JSON; - else { - fprintf(stderr, "Unknown type: only json is supported\n"); - exit(EXIT_FAILURE); - } - } - nl = mnl_socket_open(NETLINK_NETFILTER); if (nl == NULL) { perror("mnl_socket_open"); |