From ebdefe6cb43ce7573d86b13cbaad2d3fdbb9c6ff Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Fri, 17 Jul 2020 19:07:50 +0000 Subject: [PATCH] The output from usage() need not contain usage for -t when STATETOP is not compiled in. PR: 247952 MFC after: 1 week --- contrib/ipfilter/tools/ipfstat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/ipfilter/tools/ipfstat.c b/contrib/ipfilter/tools/ipfstat.c index 1d40dc67b41..c5bf68ccf90 100644 --- a/contrib/ipfilter/tools/ipfstat.c +++ b/contrib/ipfilter/tools/ipfstat.c @@ -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);