All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: kaber@trash.net,
	Netfilter Developer Mailing List
	<netfilter-devel@vger.kernel.org>
Subject: Re: iptables-restore: remove unused --binary flag
Date: Tue, 30 Dec 2008 12:08:19 +0100	[thread overview]
Message-ID: <495A0123.3020509@netfilter.org> (raw)
In-Reply-To: <alpine.LNX.1.10.0812242031570.514@fbirervta.pbzchgretzou.qr>

Jan Engelhardt wrote:
> commit 67f4e55f28abf2f666c0a0aa874d9421e91d6184
> Author: Jan Engelhardt <jengelh@medozas.de>
> Date:   Wed Dec 24 20:30:47 2008 +0100
> 
> iptables-restore: remove unused --binary flag
> 
> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
> ---
>  ip6tables-restore.c |    7 +------
>  iptables-restore.c  |    7 +------
>  iptables-save.c     |   12 ++----------
>  3 files changed, 4 insertions(+), 22 deletions(-)
> 
> diff --git a/ip6tables-restore.c b/ip6tables-restore.c
> index 01bccf7..0920760 100644
> --- a/ip6tables-restore.c
> +++ b/ip6tables-restore.c
> @@ -26,11 +26,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'},
> @@ -45,7 +44,6 @@ 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"
>  			"	   [ --counters ]\n"
>  			"	   [ --verbose ]\n"
>  			"	   [ --test ]\n"
> @@ -144,9 +142,6 @@ int main(int argc, char *argv[])
>  
>  	while ((c = getopt_long(argc, argv, "bcvthnM:", options, NULL)) != -1) {
>  		switch (c) {
> -			case 'b':
> -				binary = 1;
> -				break;

I doubt that someone is using this option, anyhow I think that it would
be better to output a warning message to stderr that says "-b is
deprecated, fix your scripts". Later, we can remove it.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

  parent reply	other threads:[~2008-12-30 11:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-24 19:32 iptables-restore: remove unused --binary flag Jan Engelhardt
2008-12-24 19:32 ` iptables-save: restore indent after last change Jan Engelhardt
2008-12-30 11:13   ` Pablo Neira Ayuso
2008-12-30 11:28     ` Jan Engelhardt
2008-12-30 11:08 ` Pablo Neira Ayuso [this message]
2009-01-19 20:20   ` iptables-restore: remove unused --binary flag Jan Engelhardt
2009-01-21  8:06     ` Patrick McHardy
2009-01-22 19:51       ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=495A0123.3020509@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=jengelh@medozas.de \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.