diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-02-26 23:26:56 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-02-26 23:26:56 +0000 |
commit | 26eaeb7b6ef67753ddb3ce44b8a4cc03d92334b8 (patch) | |
tree | 6d004d1ecd3bf1971aee8f46a3fff9fc0eff59fa /sys/compat/common/kern_info_09.c | |
parent | 14749082bf35bd016d45630742d925bb5220edd9 (diff) |
From NetBSD: update to 960217 sources
Diffstat (limited to 'sys/compat/common/kern_info_09.c')
-rw-r--r-- | sys/compat/common/kern_info_09.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/compat/common/kern_info_09.c b/sys/compat/common/kern_info_09.c index 0d04cae2475..b9188999a44 100644 --- a/sys/compat/common/kern_info_09.c +++ b/sys/compat/common/kern_info_09.c @@ -1,4 +1,5 @@ -/* $NetBSD: kern_info_09.c,v 1.3 1995/10/07 06:26:23 mycroft Exp $ */ +/* $OpenBSD: kern_info_09.c,v 1.2 1996/02/26 23:26:51 niklas 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 +64,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 +82,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 +127,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))); } |