Style fix.
Submitted by: jhb@
This commit is contained in:
parent
3bcf74459f
commit
b1fb5f9c8d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220399
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user