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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"