The length argument to sysctl is now size_t.

This commit is contained in:
Doug Rabson 1998-08-25 07:52:33 +00:00
parent dbf9b92f80
commit c2ac238c40
2 changed files with 6 additions and 3 deletions

View File

@ -122,7 +122,8 @@ kvm_getfiles(kd, op, arg, cnt)
int op, arg;
int *cnt;
{
int mib[2], size, st, nfiles;
int mib[2], st, nfiles;
size_t size;
struct file *fp, *fplim;
struct filelist filehead;

View File

@ -280,7 +280,8 @@ kvm_getprocs(kd, op, arg, cnt)
int op, arg;
int *cnt;
{
int mib[4], size, st, nprocs;
int mib[4], st, nprocs;
size_t size;
if (kd->procbase != 0) {
free((void *)kd->procbase);
@ -592,7 +593,8 @@ proc_verify(kd, kernp, p)
const struct proc *p;
{
struct kinfo_proc kp;
int mib[4], st, len;
int mib[4], st;
size_t len;
mib[0] = CTL_KERN;
mib[1] = KERN_PROC;