summaryrefslogtreecommitdiffstats
path: root/examples/nft-events.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/nft-events.c')
-rw-r--r--examples/nft-events.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/examples/nft-events.c b/examples/nft-events.c
index bd8c752..8aab90a 100644
--- a/examples/nft-events.c
+++ b/examples/nft-events.c
@@ -235,18 +235,8 @@ int main(int argc, char *argv[])
case 1:
type = NFTNL_OUTPUT_DEFAULT;
break;
- case 2:
- if (strcmp(argv[1], "json") == 0) {
- type = NFTNL_OUTPUT_JSON;
- } else if (strcmp(argv[1], "default") == 0) {
- type = NFTNL_OUTPUT_DEFAULT;
- } else {
- fprintf(stderr, "unknown format type `%s'\n", argv[1]);
- return EXIT_FAILURE;
- }
- break;
default:
- fprintf(stderr, "%s [<default|json>]\n", argv[0]);
+ fprintf(stderr, "%s\n", argv[0]);
return EXIT_FAILURE;
}