diff options
author | 1999-08-16 18:18:34 +0000 | |
---|---|---|
committer | 1999-08-16 18:18:34 +0000 | |
commit | 76eb4b06f5c20624422c015a1b83ad8a53e3c00a (patch) | |
tree | 495206ef1b97f126b33d72423fa9044a9ea5d6d9 | |
parent | free later; tg@freebsd (diff) | |
download | wireguard-openbsd-76eb4b06f5c20624422c015a1b83ad8a53e3c00a.tar.xz wireguard-openbsd-76eb4b06f5c20624422c015a1b83ad8a53e3c00a.zip |
don't cast third argument to kvm_read to char *. (it's void *)
-rw-r--r-- | bin/ps/nlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/nlist.c b/bin/ps/nlist.c index 534bdaae330..64b5be29e4e 100644 --- a/bin/ps/nlist.c +++ b/bin/ps/nlist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nlist.c,v 1.4 1998/04/26 10:26:45 deraadt Exp $ */ +/* $OpenBSD: nlist.c,v 1.5 1999/08/16 18:18:34 art Exp $ */ /* $NetBSD: nlist.c,v 1.11 1995/03/21 09:08:03 cgd Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: nlist.c,v 1.4 1998/04/26 10:26:45 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: nlist.c,v 1.5 1999/08/16 18:18:34 art Exp $"; #endif #endif /* not lint */ @@ -75,7 +75,7 @@ int fscale; /* kernel _fscale variable */ extern kvm_t *kd; #define kread(x, v) \ - kvm_read(kd, psnl[x].n_value, (char *)&v, sizeof v) != sizeof(v) + kvm_read(kd, psnl[x].n_value, &v, sizeof v) != sizeof(v) int donlist() |