summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ipf/tools/ippool.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2017-08-28 11:57:52 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2017-08-28 11:57:52 +0000
commitfd84e971d4f4598fda8c1792bcc2375d42e82cad (patch)
treebc712d645e864f554f554c4220c3311d02b9b03e /usr/src/cmd/ipf/tools/ippool.c
parent4973a49c0046838ad10a0aae797a48bde5022e97 (diff)
parentd7c57852794a9ac50d4b6a9c4161cb10919658aa (diff)
downloadillumos-joyent-fd84e971d4f4598fda8c1792bcc2375d42e82cad.tar.gz
[illumos-gate merge]
commit d7c57852794a9ac50d4b6a9c4161cb10919658aa 8485 Remove set but unused variables in usr/src/cmd
Diffstat (limited to 'usr/src/cmd/ipf/tools/ippool.c')
-rw-r--r--usr/src/cmd/ipf/tools/ippool.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/usr/src/cmd/ipf/tools/ippool.c b/usr/src/cmd/ipf/tools/ippool.c
index d0296139a8..f506834d07 100644
--- a/usr/src/cmd/ipf/tools/ippool.c
+++ b/usr/src/cmd/ipf/tools/ippool.c
@@ -7,6 +7,7 @@
* Use is subject to license terms.
*
* Copyright (c) 2014, Joyent, Inc. All rights reserved.
+ * Copyright 2017 Gary Mills
*/
#include <sys/types.h>
@@ -382,8 +383,8 @@ char *argv[];
{
char *kernel, *core, *poolname;
int c, role, type, live_kernel;
- ip_pool_stat_t *plstp, plstat;
- iphtstat_t *htstp, htstat;
+ ip_pool_stat_t plstat;
+ iphtstat_t htstat;
iphtable_t *hptr;
iplookupop_t op;
ip_pool_t *ptr;
@@ -469,7 +470,6 @@ char *argv[];
}
if (type == IPLT_ALL || type == IPLT_POOL) {
- plstp = &plstat;
op.iplo_type = IPLT_POOL;
op.iplo_size = sizeof(plstat);
op.iplo_struct = &plstat;
@@ -503,7 +503,6 @@ char *argv[];
}
}
if (type == IPLT_ALL || type == IPLT_HASH) {
- htstp = &htstat;
op.iplo_type = IPLT_HASH;
op.iplo_size = sizeof(htstat);
op.iplo_struct = &htstat;
@@ -642,15 +641,11 @@ int poolstats(argc, argv)
int argc;
char *argv[];
{
- int c, type, role, live_kernel;
+ int c, type, role;
ip_pool_stat_t plstat;
- char *kernel, *core;
iphtstat_t htstat;
iplookupop_t op;
- core = NULL;
- kernel = NULL;
- live_kernel = 1;
type = IPLT_ALL;
role = IPL_LOGALL;
@@ -666,12 +661,8 @@ char *argv[];
setzonename_global(optarg);
break;
case 'M' :
- live_kernel = 0;
- core = optarg;
break;
case 'N' :
- live_kernel = 0;
- kernel = optarg;
break;
case 'o' :
role = getrole(optarg);