Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jul 2020 19:07:50 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363282 - head/contrib/ipfilter/tools
Message-ID:  <202007171907.06HJ7oET016012@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Fri Jul 17 19:07:50 2020
New Revision: 363282
URL: https://svnweb.freebsd.org/changeset/base/363282

Log:
  The output from usage() need not contain usage for -t when STATETOP
  is not compiled in.
  
  PR:		247952
  MFC after:	1 week

Modified:
  head/contrib/ipfilter/tools/ipfstat.c

Modified: head/contrib/ipfilter/tools/ipfstat.c
==============================================================================
--- head/contrib/ipfilter/tools/ipfstat.c	Fri Jul 17 19:07:47 2020	(r363281)
+++ head/contrib/ipfilter/tools/ipfstat.c	Fri Jul 17 19:07:50 2020	(r363282)
@@ -171,10 +171,12 @@ static void usage(name)
 	fprintf(stderr, "Usage: %s [-4aAdfghIilnoRsv]\n", name);
 #endif
 	fprintf(stderr, "       %s [-M corefile] [-N symbol-list]\n", name);
+#ifdef	STATETOP
 #ifdef	USE_INET6
 	fprintf(stderr, "       %s -t [-46C] ", name);
 #else
 	fprintf(stderr, "       %s -t [-4C] ", name);
+#endif
 #endif
 	fprintf(stderr, "[-D destination address] [-P protocol] [-S source address] [-T refresh time]\n");
 	exit(1);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007171907.06HJ7oET016012>