Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vmstat GC unused variables.
details: https://anonhg.NetBSD.org/src/rev/fe800b7ba273
branches: trunk
changeset: 329665:fe800b7ba273
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Jun 02 22:57:50 2014 +0000
description:
GC unused variables.
diffstat:
usr.bin/vmstat/drvstats.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r 0a918db5ecc6 -r fe800b7ba273 usr.bin/vmstat/drvstats.c
--- a/usr.bin/vmstat/drvstats.c Mon Jun 02 19:29:58 2014 +0000
+++ b/usr.bin/vmstat/drvstats.c Mon Jun 02 22:57:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drvstats.c,v 1.7 2014/06/02 19:29:00 joerg Exp $ */
+/* $NetBSD: drvstats.c,v 1.8 2014/06/02 22:57:50 joerg Exp $ */
/*
* Copyright (c) 1996 John M. Vinopal
@@ -54,8 +54,6 @@
extern int hz;
-/* Pointer to list of drives. */
-static struct io_stats *iostathead = NULL;
/* sysctl hw.drivestats buffer. */
static struct io_sysctl *drives = NULL;
@@ -148,12 +146,9 @@
void
drvreadstats(void)
{
- struct io_stats *p;
size_t size, i;
int mib[3];
- p = iostathead;
-
mib[0] = CTL_HW;
mib[1] = HW_IOSTATS;
mib[2] = sizeof(struct io_sysctl);
Home |
Main Index |
Thread Index |
Old Index