From c4d4a99d31762beef936f34571330923e9300da9 Mon Sep 17 00:00:00 2001 From: jkh Date: Fri, 12 Jul 1996 18:57:58 +0000 Subject: General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden --- lib/libkvm/kvm_proc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/libkvm/kvm_proc.c') diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index bb352d3..6a0df4a 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -54,6 +54,8 @@ static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93"; #include #include #include +#include +#include #include #include #include @@ -71,6 +73,7 @@ static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93"; #include "kvm_private.h" +#if used static char * kvm_readswap(kd, p, va, cnt) kvm_t *kd; @@ -84,6 +87,7 @@ kvm_readswap(kd, p, va, cnt) return(0); #endif /* __FreeBSD__ */ } +#endif #define KREAD(kd, addr, obj) \ (kvm_read(kd, addr, (char *)(obj), sizeof(*obj)) != sizeof(*obj)) @@ -113,8 +117,8 @@ kvm_proclist(kd, what, arg, p, bp, maxcnt) return (-1); } if (KREAD(kd, (u_long)proc.p_cred, &eproc.e_pcred) == 0) - KREAD(kd, (u_long)eproc.e_pcred.pc_ucred, - &eproc.e_ucred); + (void)(KREAD(kd, (u_long)eproc.e_pcred.pc_ucred, + &eproc.e_ucred)); switch(what) { @@ -659,7 +663,7 @@ kvm_getenvv(kd, kp, nchr) ssize_t kvm_uread(kd, p, uva, buf, len) kvm_t *kd; - register struct proc *p; + register const struct proc *p; register u_long uva; register char *buf; register size_t len; -- cgit v1.1