diff options
author | netchild <netchild@FreeBSD.org> | 2006-10-28 16:47:38 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2006-10-28 16:47:38 +0000 |
commit | c1bb665f0e7acb3474f7a29f69d7b0912e2c6800 (patch) | |
tree | 24355fbc835baa47246566ff3f5c385721c7568a /sys/compat/linux/linux_misc.c | |
parent | fd31361d3db93c0cb39b312ab569376e04a1eae1 (diff) | |
download | FreeBSD-src-c1bb665f0e7acb3474f7a29f69d7b0912e2c6800.zip FreeBSD-src-c1bb665f0e7acb3474f7a29f69d7b0912e2c6800.tar.gz |
Fix style(9).
Noticed by: rwatson
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index eedc185..962e94f 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1564,35 +1564,35 @@ linux_prctl(struct thread *td, struct linux_prctl_args *args) #endif switch (args->option) { - case LINUX_PR_SET_PDEATHSIG: - if (!LINUX_SIG_VALID(args->arg2)) - return (EINVAL); - em = em_find(p, EMUL_UNLOCKED); - KASSERT(em != NULL, ("prctl: emuldata not found.\n")); - em->pdeath_signal = args->arg2; - EMUL_UNLOCK(&emul_lock); - break; - case LINUX_PR_GET_PDEATHSIG: - em = em_find(p, EMUL_UNLOCKED); - KASSERT(em != NULL, ("prctl: emuldata not found.\n")); - error = copyout(&em->pdeath_signal, (void *)(register_t) args->arg2, sizeof(em->pdeath_signal)); - EMUL_UNLOCK(&emul_lock); - break; - case LINUX_PR_SET_NAME: - comm[LINUX_MAX_COMM_LEN-1] = 0; - error = copyin(comm, (void *)(register_t) args->arg2, LINUX_MAX_COMM_LEN-1); - if (error) - return (error); - PROC_LOCK(p); - strcpy(p->p_comm, comm); - PROC_UNLOCK(p); - break; - case LINUX_PR_GET_NAME: - error = copyout(&p->p_comm, (void *)(register_t) args->arg2, MAXCOMLEN+1); - break; - default: - error = EINVAL; - break; + case LINUX_PR_SET_PDEATHSIG: + if (!LINUX_SIG_VALID(args->arg2)) + return (EINVAL); + em = em_find(p, EMUL_UNLOCKED); + KASSERT(em != NULL, ("prctl: emuldata not found.\n")); + em->pdeath_signal = args->arg2; + EMUL_UNLOCK(&emul_lock); + break; + case LINUX_PR_GET_PDEATHSIG: + em = em_find(p, EMUL_UNLOCKED); + KASSERT(em != NULL, ("prctl: emuldata not found.\n")); + error = copyout(&em->pdeath_signal, (void *)(register_t) args->arg2, sizeof(em->pdeath_signal)); + EMUL_UNLOCK(&emul_lock); + break; + case LINUX_PR_SET_NAME: + comm[LINUX_MAX_COMM_LEN-1] = 0; + error = copyin(comm, (void *)(register_t) args->arg2, LINUX_MAX_COMM_LEN-1); + if (error) + return (error); + PROC_LOCK(p); + strcpy(p->p_comm, comm); + PROC_UNLOCK(p); + break; + case LINUX_PR_GET_NAME: + error = copyout(&p->p_comm, (void *)(register_t) args->arg2, MAXCOMLEN+1); + break; + default: + error = EINVAL; + break; } return (error); |