summaryrefslogtreecommitdiff
path: root/usr.bin
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
parentbd208810222a758a99da093d3e125e28c729fdbe (diff)
stop casting the third argument to kvm_read to char *. it is a void *.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/top/machine.c4
-rw-r--r--usr.bin/vmstat/dkstats.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 650d4596f7f..783bef81f29 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.c,v 1.15 1999/05/22 21:42:26 weingart Exp $ */
+/* $OpenBSD: machine.c,v 1.16 1999/06/21 20:48:01 art Exp $ */
/*
* top - a top users display for Unix
@@ -534,7 +534,7 @@ int size;
char *refstr;
{
- if (kvm_read(kd, offset, (char *) ptr, size) != size)
+ if (kvm_read(kd, offset, ptr, size) != size)
{
if (*refstr == '!')
{
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);