diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index 5f6ee8cb4ec0..10f3eb1fa681 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -504,7 +504,7 @@ msgget(td, uap) error = EEXIST; goto done2; } - if ((error = ipcperm(td, &msqptr->msg_perm, msgflg & 0700 ))) { + if ((error = ipcperm(td, &msqptr->msg_perm, msgflg & 0700))) { DPRINTF(("requester doesn't have 0%o access\n", msgflg & 0700)); goto done2; diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index 5143213eab4a..9fbbf8c9c302 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -51,7 +51,7 @@ int semop(struct thread *td, struct semop_args *uap); #endif static struct sem_undo *semu_alloc(struct thread *td); -static int semundo_adjust(struct thread *td, struct sem_undo **supptr, +static int semundo_adjust(struct thread *td, struct sem_undo **supptr, int semid, int semnum, int adjval); static void semundo_clear(int semid, int semnum); @@ -527,7 +527,7 @@ __semctl(td, uap) semaptr = &sema[semid]; sema_mtxp = &sema_mtx[semid]; mtx_lock(sema_mtxp); - if ((semaptr->sem_perm.mode & SEM_ALLOC) == 0 ) { + if ((semaptr->sem_perm.mode & SEM_ALLOC) == 0) { error = EINVAL; goto done2; } diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 5c056ebfc5d6..32663e41a62a 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -395,7 +395,7 @@ done2: return (error); } -int +int shmat(td, uap) struct thread *td; struct shmat_args *uap;