summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r--sys/kern/uipc_syscalls.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index d5c190b0336..912b3be61f6 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_syscalls.c,v 1.73 2009/11/27 20:05:50 guenther Exp $ */
+/* $OpenBSD: uipc_syscalls.c,v 1.74 2009/12/23 07:40:31 guenther Exp $ */
/* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */
/*
@@ -1105,14 +1105,14 @@ sys_setrdomain(struct proc *p, void *v, register_t *retval)
rdomain = SCARG(uap, rdomain);
- if (p->p_rdomain == (u_int)rdomain)
+ if (p->p_p->ps_rdomain == (u_int)rdomain)
return (0);
- if (p->p_rdomain != 0 && (error = suser(p, 0)) != 0)
+ if (p->p_p->ps_rdomain != 0 && (error = suser(p, 0)) != 0)
return (error);
if (rdomain < 0 || !rtable_exists((u_int)rdomain))
return (EINVAL);
- p->p_rdomain = (u_int)rdomain;
+ p->p_p->ps_rdomain = (u_int)rdomain;
return (0);
}
@@ -1120,6 +1120,6 @@ sys_setrdomain(struct proc *p, void *v, register_t *retval)
int
sys_getrdomain(struct proc *p, void *v, register_t *retval)
{
- *retval = (int)p->p_rdomain;
+ *retval = (int)p->p_p->ps_rdomain;
return (0);
}