Module Name: src Committed By: joerg Date: Mon Jun 2 22:57:50 UTC 2014
Modified Files: src/usr.bin/vmstat: drvstats.c Log Message: GC unused variables. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/usr.bin/vmstat/drvstats.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/vmstat/drvstats.c diff -u src/usr.bin/vmstat/drvstats.c:1.7 src/usr.bin/vmstat/drvstats.c:1.8 --- src/usr.bin/vmstat/drvstats.c:1.7 Mon Jun 2 19:29:00 2014 +++ src/usr.bin/vmstat/drvstats.c Mon Jun 2 22:57:50 2014 @@ -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 @@ struct _drive cur, last; 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 @@ cpuswap(void) 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);