Index: sys/kern/kern_exec.c =================================================================== --- sys/kern/kern_exec.c +++ sys/kern/kern_exec.c @@ -1985,7 +1985,7 @@ struct proc *p; int error, locked; - cp = (struct coredump_params *)arg; + cp = arg; p = cp->td->td_proc; /*