kern_sysctl was missing process argument. Elimited -Wall warnings from

the files that were affected
This commit is contained in:
christos 1996-02-04 02:02:14 +00:00
parent 065bada41f
commit ec3976413e
2 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_info_09.c,v 1.3 1995/10/07 06:26:23 mycroft Exp $ */
/* $NetBSD: kern_info_09.c,v 1.4 1996/02/04 02:02:14 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1991, 1993
@ -63,7 +63,7 @@ compat_09_sys_getdomainname(p, v, retval)
name = KERN_DOMAINNAME;
return (kern_sysctl(&name, 1, SCARG(uap, domainname),
&SCARG(uap, len), 0, 0));
&SCARG(uap, len), 0, 0, p));
}
@ -81,11 +81,11 @@ compat_09_sys_setdomainname(p, v, retval)
int name;
int error;
if (error = suser(p->p_ucred, &p->p_acflag))
if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
return (error);
name = KERN_DOMAINNAME;
return (kern_sysctl(&name, 1, 0, 0, SCARG(uap, domainname),
SCARG(uap, len)));
SCARG(uap, len), p));
}
struct outsname {
@ -126,5 +126,5 @@ compat_09_sys_uname(p, v, retval)
*dp = '\0';
strncpy(outsname.machine, MACHINE, sizeof(outsname.machine));
return (copyout((caddr_t)&outsname, (caddr_t)SCARG(uap, name),
sizeof(struct outsname)));
sizeof(struct outsname)));
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_info_43.c,v 1.3 1995/10/07 06:26:24 mycroft Exp $ */
/* $NetBSD: kern_info_43.c,v 1.4 1996/02/04 02:02:22 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1991, 1993
@ -97,7 +97,7 @@ compat_43_sys_gethostname(p, v, retval)
name = KERN_HOSTNAME;
return (kern_sysctl(&name, 1, SCARG(uap, hostname), &SCARG(uap, len),
0, 0));
0, 0, p));
}
#define KINFO_PROC (0<<8)
@ -202,7 +202,7 @@ compat_43_sys_sethostid(p, v, retval)
} */ *uap = v;
int error;
if (error = suser(p->p_ucred, &p->p_acflag))
if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
return (error);
hostid = SCARG(uap, hostid);
return (0);
@ -220,9 +220,9 @@ compat_43_sys_sethostname(p, v, retval)
int name;
int error;
if (error = suser(p->p_ucred, &p->p_acflag))
if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
return (error);
name = KERN_HOSTNAME;
return (kern_sysctl(&name, 1, 0, 0, SCARG(uap, hostname),
SCARG(uap, len)));
SCARG(uap, len), p));
}