git: 80badfcb70cf - main - iostat: Remove set but unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Jun 2023 16:29:35 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=80badfcb70cf79560951f79245f765c444083e1f
commit 80badfcb70cf79560951f79245f765c444083e1f
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-20 16:29:00 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-06-20 16:29:00 +0000
iostat: Remove set but unused variable.
---
usr.sbin/iostat/iostat.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index 9140bf10ef07..7c4dcf16e0a5 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -179,7 +179,7 @@ int
main(int argc, char **argv)
{
int c, i;
- int tflag = 0, hflag = 0, cflag = 0, wflag = 0, nflag = 0;
+ int hflag = 0, cflag = 0, wflag = 0, nflag = 0;
int count = 0, waittime = 0;
char *memf = NULL, *nlistf = NULL;
struct devstat_match *matches;
@@ -239,7 +239,6 @@ main(int argc, char **argv)
oflag++;
break;
case 't':
- tflag++;
if (devstat_buildmatch(optarg, &matches,
&num_matches) != 0)
errx(1, "%s", devstat_errbuf);