summaryrefslogtreecommitdiff
path: root/bin/ps/ps.c
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 /bin/ps/ps.c
parentbd208810222a758a99da093d3e125e28c729fdbe (diff)
stop casting the third argument to kvm_read to char *. it is a void *.
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r--bin/ps/ps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index d0eda88552d..332b55019c5 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ps.c,v 1.11 1999/04/28 20:55:14 alex Exp $ */
+/* $OpenBSD: ps.c,v 1.12 1999/06/21 20:47:59 art Exp $ */
/* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: ps.c,v 1.11 1999/04/28 20:55:14 alex Exp $";
+static char rcsid[] = "$OpenBSD: ps.c,v 1.12 1999/06/21 20:47:59 art Exp $";
#endif
#endif /* not lint */
@@ -390,7 +390,7 @@ saveuser(ki)
usp = &ki->ki_u;
if (kvm_read(kd, (u_long)&KI_PROC(ki)->p_addr->u_stats,
- (char *)&pstats, sizeof(pstats)) == sizeof(pstats)) {
+ &pstats, sizeof(pstats)) == sizeof(pstats)) {
/*
* The u-area might be swapped out, and we can't get
* at it because we have a crashdump and no swap.