summaryrefslogtreecommitdiff
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-06-21 20:48:02 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-06-21 20:48:02 +0000
commit1b133d1b6f6c89dc462e3f7eaa5b5fe9aee9c0b2 (patch)
tree128a880387f9eb1c2ca356abe39903a749739b83 /usr.bin/vmstat
parentbd208810222a758a99da093d3e125e28c729fdbe (diff)
stop casting the third argument to kvm_read to char *. it is a void *.
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/dkstats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vmstat/dkstats.c b/usr.bin/vmstat/dkstats.c
index 6a247702cc3..60e54d0162e 100644
--- a/usr.bin/vmstat/dkstats.c
+++ b/usr.bin/vmstat/dkstats.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dkstats.c,v 1.5 1997/06/23 22:11:07 millert Exp $ */
+/* $OpenBSD: dkstats.c,v 1.6 1999/06/21 20:48:01 art Exp $ */
/* $NetBSD: dkstats.c,v 1.1 1996/05/10 23:19:27 thorpej Exp $ */
/*
@@ -257,7 +257,7 @@ deref_kptr(kptr, ptr, len)
{
char buf[128];
- if (kvm_read(kd, (u_long)kptr, (char *)ptr, len) != len) {
+ if (kvm_read(kd, (u_long)kptr, ptr, len) != len) {
bzero(buf, sizeof(buf));
snprintf(buf, (sizeof(buf) - 1),
"can't dereference kptr 0x%lx", (u_long)kptr);