summaryrefslogtreecommitdiff
path: root/usr.bin/vmstat/dkstats.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-17 19:37:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-17 19:37:41 +0000
commit9bd223c2bc56f227e5c70f7c4418fa69d6bd495b (patch)
tree719939b410c8bdef29d3079b200a357a34e1434f /usr.bin/vmstat/dkstats.c
parent6a10e81fbad0827c1ebc1ca38b0dc440f12b7424 (diff)
ansi
Diffstat (limited to 'usr.bin/vmstat/dkstats.c')
-rw-r--r--usr.bin/vmstat/dkstats.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/vmstat/dkstats.c b/usr.bin/vmstat/dkstats.c
index 22af0ffb2a7..0c5d34e6051 100644
--- a/usr.bin/vmstat/dkstats.c
+++ b/usr.bin/vmstat/dkstats.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dkstats.c,v 1.20 2002/08/04 00:51:01 deraadt Exp $ */
+/* $OpenBSD: dkstats.c,v 1.21 2002/09/17 19:37:40 deraadt Exp $ */
/* $NetBSD: dkstats.c,v 1.1 1996/05/10 23:19:27 thorpej Exp $ */
/*
@@ -117,7 +117,7 @@ char **dr_name;
* the delta values in the 'cur' structure.
*/
void
-dkswap()
+dkswap(void)
{
u_int64_t tmp;
int i;
@@ -154,7 +154,7 @@ dkswap()
* Also collect statistics for tty i/o and cpu ticks.
*/
void
-dkreadstats()
+dkreadstats(void)
{
#if !defined(NOKVM)
struct disk cur_disk, *p;
@@ -230,8 +230,7 @@ dkreadstats()
* track disk statistics.
*/
int
-dkinit(select)
-int select;
+dkinit(int select)
{
#if !defined(NOKVM)
struct disklist_head disk_head;
@@ -373,9 +372,7 @@ int select;
* and the size of the copy passed in `len'.
*/
static void
-deref_kptr(kptr, ptr, len)
- void *kptr, *ptr;
- size_t len;
+deref_kptr(void *kptr, void *ptr, size_t len)
{
char buf[128];