diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2009-06-20 20:20:44 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2009-06-20 20:20:44 +0000 |
commit | a005f0130e8155f01a706f61d4362109cd47bc21 (patch) | |
tree | e9d231ebbb7b02b67b0036fe7ba33ea730aa3e24 /lib/libkvm/kvm_getloadavg.c | |
parent | 4402975a348938d8cad34341962b18854da39d93 (diff) |
Move KREAD define to kvm_private.h
Diffstat (limited to 'lib/libkvm/kvm_getloadavg.c')
-rw-r--r-- | lib/libkvm/kvm_getloadavg.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libkvm/kvm_getloadavg.c b/lib/libkvm/kvm_getloadavg.c index 38dc4c838f9..66cd9af4fa0 100644 --- a/lib/libkvm/kvm_getloadavg.c +++ b/lib/libkvm/kvm_getloadavg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_getloadavg.c,v 1.7 2006/03/31 03:59:40 deraadt Exp $ */ +/* $OpenBSD: kvm_getloadavg.c,v 1.8 2009/06/20 20:20:43 millert Exp $ */ /* $NetBSD: kvm_getloadavg.c,v 1.2 1996/03/18 22:33:31 thorpej Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)kvm_getloadavg.c 8.1 (Berkeley) 6/4/93"; #else -static char *rcsid = "$OpenBSD: kvm_getloadavg.c,v 1.7 2006/03/31 03:59:40 deraadt Exp $"; +static char *rcsid = "$OpenBSD: kvm_getloadavg.c,v 1.8 2009/06/20 20:20:43 millert Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -85,9 +85,6 @@ kvm_getloadavg(kvm_t *kd, double loadavg[], int nelem) return (-1); } -#define KREAD(kd, addr, obj) \ - (kvm_read(kd, addr, (char *)(obj), sizeof(*obj)) != sizeof(*obj)) - if (KREAD(kd, nl[X_AVERUNNABLE].n_value, &loadinfo)) { _kvm_err(kd, kd->program, "can't read averunnable"); return (-1); |