diff options
Diffstat (limited to 'examples/nft-rule-parse-add.c')
-rw-r--r-- | examples/nft-rule-parse-add.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/examples/nft-rule-parse-add.c b/examples/nft-rule-parse-add.c index 3707de3..90f1da7 100644 --- a/examples/nft-rule-parse-add.c +++ b/examples/nft-rule-parse-add.c @@ -84,18 +84,15 @@ int main(int argc, char *argv[]) uint16_t family, format, outformat; if (argc < 3) { - printf("Usage: %s {xml|json} <file>\n", argv[0]); + printf("Usage: %s {json} <file>\n", argv[0]); exit(EXIT_FAILURE); } - if (strcmp(argv[1], "xml") == 0) { - format = NFTNL_PARSE_XML; - outformat = NFTNL_OUTPUT_XML; - } else if (strcmp(argv[1], "json") == 0) { + if (strcmp(argv[1], "json") == 0) { format = NFTNL_PARSE_JSON; outformat = NFTNL_OUTPUT_JSON; } else { - printf("Unknown format: xml, json\n"); + printf("Unknown format: json\n"); exit(EXIT_FAILURE); } |