diff options
author | trasz <trasz@FreeBSD.org> | 2011-04-06 19:08:50 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2011-04-06 19:08:50 +0000 |
commit | 97c31deddee28ce34cbfea1a2d29d5d12830edb8 (patch) | |
tree | 377f1fff0817c8450b4a4ecda016305ca5cbd6e4 /sys | |
parent | d3c78eed8e4f4795db6ffb683782bde3484ce1b4 (diff) | |
download | FreeBSD-src-97c31deddee28ce34cbfea1a2d29d5d12830edb8.zip FreeBSD-src-97c31deddee28ce34cbfea1a2d29d5d12830edb8.tar.gz |
Style fix.
Submitted by: jhb@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sysv_msg.c | 3 | ||||
-rw-r--r-- | sys/kern/sysv_sem.c | 3 | ||||
-rw-r--r-- | sys/kern/sysv_shm.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index eb451f9..87d479e 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -634,8 +634,7 @@ msgget(td, uap) msqkptr->u.msg_perm.cgid = cred->cr_gid; msqkptr->u.msg_perm.gid = cred->cr_gid; msqkptr->u.msg_perm.mode = (msgflg & 0777); - crhold(cred); - msqkptr->cred = cred; + msqkptr->cred = crhold(cred); /* Make sure that the returned msqid is unique */ msqkptr->u.msg_perm.seq = (msqkptr->u.msg_perm.seq + 1) & 0x7fff; msqkptr->u.msg_first = NULL; diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index c56b27d..ac53a8d 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -948,8 +948,7 @@ semget(struct thread *td, struct semget_args *uap) sema[semid].u.sem_perm.cgid = cred->cr_gid; sema[semid].u.sem_perm.gid = cred->cr_gid; sema[semid].u.sem_perm.mode = (semflg & 0777) | SEM_ALLOC; - crhold(cred); - sema[semid].cred = cred; + sema[semid].cred = crhold(cred); sema[semid].u.sem_perm.seq = (sema[semid].u.sem_perm.seq + 1) & 0x7fff; sema[semid].u.sem_nsems = nsems; diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 834fa38..f5a84ae 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -715,8 +715,7 @@ shmget_allocate_segment(td, uap, mode) shmseg->u.shm_perm.cgid = shmseg->u.shm_perm.gid = cred->cr_gid; shmseg->u.shm_perm.mode = (shmseg->u.shm_perm.mode & SHMSEG_WANTED) | (mode & ACCESSPERMS) | SHMSEG_ALLOCATED; - crhold(cred); - shmseg->cred = cred; + shmseg->cred = crhold(cred); shmseg->u.shm_segsz = uap->size; shmseg->u.shm_cpid = td->td_proc->p_pid; shmseg->u.shm_lpid = shmseg->u.shm_nattch = 0; |