diff options
author | Jiri Popelka <jpopelka@redhat.com> | 2014-03-14 12:52:47 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-03-17 12:47:42 +0100 |
commit | 991ad3874826d560efcf81c8422b1e9b5b935bbc (patch) | |
tree | 5759fcf546ff30a48292f2652f7bb9ddb2de607a /iptables/xtables-restore.c | |
parent | 081d57839e91e18df38ed3e56b8a720677efcedc (diff) |
iptables-{save,restore}: warn that -b/--binary isn't implemented
see also 296dca39be
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r-- | iptables/xtables-restore.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index f7850bb2..3cb095fe 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -24,11 +24,10 @@ #define DEBUGP(x, args...) #endif -static int binary = 0, counters = 0, verbose = 0, noflush = 0; +static int counters = 0, verbose = 0, noflush = 0; /* Keeping track of external matches and targets. */ static const struct option options[] = { - {.name = "binary", .has_arg = false, .val = 'b'}, {.name = "counters", .has_arg = false, .val = 'c'}, {.name = "verbose", .has_arg = false, .val = 'v'}, {.name = "test", .has_arg = false, .val = 't'}, @@ -47,8 +46,7 @@ static void print_usage(const char *name, const char *version) __attribute__((no static void print_usage(const char *name, const char *version) { - fprintf(stderr, "Usage: %s [-b] [-c] [-v] [-t] [-h]\n" - " [ --binary ]\n" + fprintf(stderr, "Usage: %s [-c] [-v] [-t] [-h]\n" " [ --counters ]\n" " [ --verbose ]\n" " [ --test ]\n" @@ -208,7 +206,7 @@ xtables_restore_main(int family, const char *progname, int argc, char *argv[]) while ((c = getopt_long(argc, argv, "bcvthnM:T:46", options, NULL)) != -1) { switch (c) { case 'b': - binary = 1; + fprintf(stderr, "-b/--binary option is not implemented\n"); break; case 'c': counters = 1; |