summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_prot.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2011-07-07 18:08:36 +0000
committertedu <tedu@openbsd.org>2011-07-07 18:08:36 +0000
commit4af3d307227f96283f700a5cba875170c50b5d37 (patch)
tree4744c11e8a11a0fed01cda4c03e0e5c2ed22d66c /sys/kern/kern_prot.c
parentFix the LBA offset calculation for the last block in a rebuild, if there (diff)
downloadwireguard-openbsd-4af3d307227f96283f700a5cba875170c50b5d37.tar.xz
wireguard-openbsd-4af3d307227f96283f700a5cba875170c50b5d37.zip
effectively revert 1.44. we don't need the compat_43 syscall returns ever.
getpid is smp safe again. ok guenther
Diffstat (limited to 'sys/kern/kern_prot.c')
-rw-r--r--sys/kern/kern_prot.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 7f451200606..29e8a21e04f 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_prot.c,v 1.48 2011/04/04 13:00:13 guenther Exp $ */
+/* $OpenBSD: kern_prot.c,v 1.49 2011/07/07 18:08:36 tedu Exp $ */
/* $NetBSD: kern_prot.c,v 1.33 1996/02/09 18:59:42 christos Exp $ */
/*
@@ -59,8 +59,7 @@ int
sys_getpid(struct proc *p, void *v, register_t *retval)
{
- retval[0] = p->p_p->ps_pid;
- retval[1] = p->p_p->ps_pptr->ps_pid;
+ *retval = p->p_p->ps_pid;
return (0);
}
@@ -142,8 +141,7 @@ int
sys_getuid(struct proc *p, void *v, register_t *retval)
{
- retval[0] = p->p_cred->p_ruid;
- retval[1] = p->p_ucred->cr_uid;
+ *retval = p->p_cred->p_ruid;
return (0);
}
@@ -172,8 +170,7 @@ int
sys_getgid(struct proc *p, void *v, register_t *retval)
{
- retval[0] = p->p_cred->p_rgid;
- retval[1] = p->p_ucred->cr_gid;
+ *retval = p->p_cred->p_rgid;
return (0);
}