diff options
author | bde <bde@FreeBSD.org> | 1999-09-04 13:30:18 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-09-04 13:30:18 +0000 |
commit | f8be141aebb63577d68a7a6eadb94f08ff2c17c7 (patch) | |
tree | 00f227ea73b61631627f7667ccff0783ebf9a0c2 /sys/kern | |
parent | dadcf3d80fd384e8816b5a9c2e79c2a3ac84f47f (diff) | |
download | FreeBSD-src-f8be141aebb63577d68a7a6eadb94f08ff2c17c7.zip FreeBSD-src-f8be141aebb63577d68a7a6eadb94f08ff2c17c7.tar.gz |
Fixed style regressions in previous commit.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/imgact_aout.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index 90f22dd..e2fdcfa 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -75,7 +75,7 @@ struct sysentvec aout_sysvec = { aout_coredump }; -int +static int exec_aout_imgact(imgp) struct image_params *imgp; { @@ -251,12 +251,10 @@ aout_coredump(p, vp, limit) { register struct ucred *cred = p->p_cred->pc_ucred; register struct vmspace *vm = p->p_vmspace; - int error = 0; + int error; - if (ctob(UPAGES + vm->vm_dsize + vm->vm_ssize) >= - limit) + if (ctob(UPAGES + vm->vm_dsize + vm->vm_ssize) >= limit) return (EFAULT); - bcopy(p, &p->p_addr->u_kproc.kp_proc, sizeof(struct proc)); fill_eproc(p, &p->p_addr->u_kproc.kp_eproc); error = cpu_coredump(p, vp, cred); @@ -270,7 +268,7 @@ aout_coredump(p, vp, limit) round_page(ctob(vm->vm_ssize)), (off_t)ctob(UPAGES) + ctob(vm->vm_dsize), UIO_USERSPACE, IO_NODELOCKED|IO_UNIT, cred, (int *) NULL, p); - return error; + return (error); } /* |