summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-10-19 11:57:38 +0000
committermarkm <markm@FreeBSD.org>2002-10-19 11:57:38 +0000
commit221c2ddb5d1cf112aaf5540a5787a551208ec4dc (patch)
tree7a6e62735db645a81173ed3ac234c89c633d70d0 /sys/i386
parent451ff53efa679aff57666e2a6dc6257e84c67724 (diff)
downloadFreeBSD-src-221c2ddb5d1cf112aaf5540a5787a551208ec4dc.zip
FreeBSD-src-221c2ddb5d1cf112aaf5540a5787a551208ec4dc.tar.gz
Style(9). Make some function declarations consistent with the rest,
and remove some nearby extraneous {}'s.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/linux/imgact_linux.c3
-rw-r--r--sys/i386/linux/linux_machdep.c8
-rw-r--r--sys/i386/linux/linux_sysvec.c23
3 files changed, 10 insertions, 24 deletions
diff --git a/sys/i386/linux/imgact_linux.c b/sys/i386/linux/imgact_linux.c
index 934902c..176a858 100644
--- a/sys/i386/linux/imgact_linux.c
+++ b/sys/i386/linux/imgact_linux.c
@@ -56,8 +56,7 @@
static int exec_linux_imgact(struct image_params *iparams);
static int
-exec_linux_imgact(imgp)
- struct image_params *imgp;
+exec_linux_imgact(struct image_params *imgp)
{
const struct exec *a_out = (const struct exec *) imgp->image_header;
struct vmspace *vmspace;
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c
index 5ea1b5d..9f8c97a 100644
--- a/sys/i386/linux/linux_machdep.c
+++ b/sys/i386/linux/linux_machdep.c
@@ -602,9 +602,7 @@ linux_iopl(struct thread *td, struct linux_iopl_args *args)
}
int
-linux_modify_ldt(td, uap)
- struct thread *td;
- struct linux_modify_ldt_args *uap;
+linux_modify_ldt(struct thread *td, struct linux_modify_ldt_args *uap)
{
int error;
caddr_t sg;
@@ -734,9 +732,7 @@ linux_sigsuspend(struct thread *td, struct linux_sigsuspend_args *args)
}
int
-linux_rt_sigsuspend(td, uap)
- struct thread *td;
- struct linux_rt_sigsuspend_args *uap;
+linux_rt_sigsuspend(struct thread *td, struct linux_rt_sigsuspend_args *uap)
{
l_sigset_t lmask;
sigset_t sigmask;
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index e6c2364..cad766e 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -233,12 +233,10 @@ elf_linux_fixup(register_t **stack_base, struct image_params *imgp)
pos = *stack_base + (imgp->argc + imgp->envc + 2);
- if (args->trace) {
+ if (args->trace)
AUXARGS_ENTRY(pos, AT_DEBUG, 1);
- }
- if (args->execfd != -1) {
+ if (args->execfd != -1)
AUXARGS_ENTRY(pos, AT_EXECFD, args->execfd);
- }
AUXARGS_ENTRY(pos, AT_PHDR, args->phdr);
AUXARGS_ENTRY(pos, AT_PHENT, args->phent);
AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum);
@@ -505,9 +503,7 @@ linux_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code)
* a machine fault.
*/
int
-linux_sigreturn(td, args)
- struct thread *td;
- struct linux_sigreturn_args *args;
+linux_sigreturn(struct thread *td, struct linux_sigreturn_args *args)
{
struct proc *p = td->td_proc;
struct l_sigframe frame;
@@ -544,9 +540,8 @@ linux_sigreturn(td, args)
* bit at worst causes one more or one less debugger trap, so
* allowing it is fairly harmless.
*/
- if (!EFLAGS_SECURE(eflags & ~PSL_RF, regs->tf_eflags & ~PSL_RF)) {
+ if (!EFLAGS_SECURE(eflags & ~PSL_RF, regs->tf_eflags & ~PSL_RF))
return(EINVAL);
- }
/*
* Don't allow users to load a valid privileged %cs. Let the
@@ -602,9 +597,7 @@ linux_sigreturn(td, args)
* a machine fault.
*/
int
-linux_rt_sigreturn(td, args)
- struct thread *td;
- struct linux_rt_sigreturn_args *args;
+linux_rt_sigreturn(struct thread *td, struct linux_rt_sigreturn_args *args)
{
struct proc *p = td->td_proc;
struct l_ucontext uc;
@@ -645,9 +638,8 @@ linux_rt_sigreturn(td, args)
* bit at worst causes one more or one less debugger trap, so
* allowing it is fairly harmless.
*/
- if (!EFLAGS_SECURE(eflags & ~PSL_RF, regs->tf_eflags & ~PSL_RF)) {
+ if (!EFLAGS_SECURE(eflags & ~PSL_RF, regs->tf_eflags & ~PSL_RF))
return(EINVAL);
- }
/*
* Don't allow users to load a valid privileged %cs. Let the
@@ -777,8 +769,7 @@ linux_aout_coredump(struct thread *td, struct vnode *vp, off_t limit)
static int exec_linux_imgact_try(struct image_params *iparams);
static int
-exec_linux_imgact_try(imgp)
- struct image_params *imgp;
+exec_linux_imgact_try(struct image_params *imgp)
{
const char *head = (const char *)imgp->image_header;
int error = -1;
OpenPOWER on IntegriCloud