Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2015 22:52:18 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287179 - head/usr.bin/sockstat
Message-ID:  <201508262252.t7QMqIBV000998@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Wed Aug 26 22:52:18 2015
New Revision: 287179
URL: https://svnweb.freebsd.org/changeset/base/287179

Log:
  Remove a variable which is set but never used.
  
  PR:		201585
  MFC after:	3 weeks

Modified:
  head/usr.bin/sockstat/sockstat.c

Modified: head/usr.bin/sockstat/sockstat.c
==============================================================================
--- head/usr.bin/sockstat/sockstat.c	Wed Aug 26 22:50:53 2015	(r287178)
+++ head/usr.bin/sockstat/sockstat.c	Wed Aug 26 22:52:18 2015	(r287179)
@@ -542,9 +542,9 @@ gather_inet(int proto)
 	const char *varname, *protoname;
 	size_t len, bufsize;
 	void *buf;
-	int hash, retry, state, vflag;
+	int hash, retry, vflag;
 
-	state = vflag = 0;
+	vflag = 0;
 	if (opt_4)
 		vflag |= INP_IPV4;
 	if (opt_6)
@@ -609,7 +609,6 @@ gather_inet(int proto)
 			inp = &xtp->xt_inp;
 			so = &xtp->xt_socket;
 			protoname = xtp->xt_tp.t_flags & TF_TOE ? "toe" : "tcp";
-			state = xtp->xt_tp.t_state;
 			break;
 		case IPPROTO_UDP:
 		case IPPROTO_DIVERT:



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