diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1999-09-04 13:30:18 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1999-09-04 13:30:18 +0000 |
| commit | b9e91a85a6c474f422c9af0e931e7d693ff0bebe (patch) | |
| tree | 7f3e601b37b67d0869c595df1984fdc29d7e61b3 | |
| parent | 7dd5e27cc6555e43f431ba9a77478f0b6c20e4f8 (diff) | |
Notes
| -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 90f22dd10588..e2fdcfa4aa9d 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); } /* |
