ippool: remove set-but-not-unused vars

Display of stats from a kernel core dump was never fully implemented.
Remove the dangling vars and remove the documentation.

MFC after:	3 days
This commit is contained in:
Cy Schubert 2021-12-10 21:01:14 -08:00
parent fe5b077c9e
commit 2169572e74
2 changed files with 3 additions and 15 deletions

View File

@ -27,7 +27,7 @@ ippool \- user interface to the IPFilter pools
-R [-dnv] [-m <name>] [-o <role>] -t <type>
.br
.B ippool
-s [-dtv] [-M <core>] [-N <namelist>]
-s [-dtv]
.SH DESCRIPTION
.PP
.B Ippool

View File

@ -76,7 +76,7 @@ usage(prog)
fprintf(stderr, "\t-l [-dv] [-m <name>] [-t <type>] [-o <role>] [-M <core>] [-N <namelist>]\n");
fprintf(stderr, "\t-r [-dnv] [-m <name>] [-o <role>] [-t type] -i <ipaddr>[/netmask]\n");
fprintf(stderr, "\t-R [-dnv] [-m <name>] [-o <role>] [-t <type>]\n");
fprintf(stderr, "\t-s [-dtv] [-M <core>] [-N <namelist>]\n");
fprintf(stderr, "\t-s [-dtv]\n");
exit(1);
}
@ -431,16 +431,12 @@ poolstats(argc, argv)
int argc;
char *argv[];
{
int c, type, role, live_kernel;
int c, type, role;
ipf_pool_stat_t plstat;
ipf_dstl_stat_t dlstat;
char *kernel, *core;
iphtstat_t htstat;
iplookupop_t op;
core = NULL;
kernel = NULL;
live_kernel = 1;
type = IPLT_ALL;
role = IPL_LOGALL;
@ -452,14 +448,6 @@ poolstats(argc, argv)
case 'd' :
opts |= OPT_DEBUG;
break;
case 'M' :
live_kernel = 0;
core = optarg;
break;
case 'N' :
live_kernel = 0;
kernel = optarg;
break;
case 'o' :
role = getrole(optarg);
if (role == IPL_LOGNONE) {