diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-12 18:57:58 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-12 18:57:58 +0000 |
commit | c4d4a99d31762beef936f34571330923e9300da9 (patch) | |
tree | c116431af8e1f042b25e0f70c63c437cf7ff8d63 /lib/libkvm/kvm_proc.c | |
parent | 6657f01bfd009bbf4ec0481a17712259abf8ea77 (diff) | |
download | FreeBSD-src-c4d4a99d31762beef936f34571330923e9300da9.zip FreeBSD-src-c4d4a99d31762beef936f34571330923e9300da9.tar.gz |
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Diffstat (limited to 'lib/libkvm/kvm_proc.c')
-rw-r--r-- | lib/libkvm/kvm_proc.c | 10 |
1 files changed, 7 insertions, 3 deletions
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 <sys/ioctl.h> #include <sys/tty.h> #include <sys/file.h> +#include <stdio.h> +#include <stdlib.h> #include <unistd.h> #include <nlist.h> #include <kvm.h> @@ -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; |