diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 31cebdef3c72..6d4e4265ad85 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 - * $Id: trap.c,v 1.55 1995/07/16 05:39:22 davidg Exp $ + * $Id: trap.c,v 1.56 1995/07/16 10:31:26 joerg Exp $ */ /* @@ -952,13 +952,9 @@ linux_syscall(frame) #ifdef KTRACE if (KTRPOINT(p, KTR_SYSCALL)) - ktrsyscall(p->p_tracep, code, callp->sy_narg, &args); + ktrsyscall(p->p_tracep, code, callp->sy_narg, (int *)&args); #endif -#ifdef KTRACE - if (KTRPOINT(p, KTR_SYSCALL)) - ktrsyscall(p->p_tracep, code, callp->sy_narg, &args); -#endif rval[0] = 0; rval[1] = frame.tf_edx; diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index 31cebdef3c72..6d4e4265ad85 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 - * $Id: trap.c,v 1.55 1995/07/16 05:39:22 davidg Exp $ + * $Id: trap.c,v 1.56 1995/07/16 10:31:26 joerg Exp $ */ /* @@ -952,13 +952,9 @@ linux_syscall(frame) #ifdef KTRACE if (KTRPOINT(p, KTR_SYSCALL)) - ktrsyscall(p->p_tracep, code, callp->sy_narg, &args); + ktrsyscall(p->p_tracep, code, callp->sy_narg, (int *)&args); #endif -#ifdef KTRACE - if (KTRPOINT(p, KTR_SYSCALL)) - ktrsyscall(p->p_tracep, code, callp->sy_narg, &args); -#endif rval[0] = 0; rval[1] = frame.tf_edx; diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 31cebdef3c72..6d4e4265ad85 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 - * $Id: trap.c,v 1.55 1995/07/16 05:39:22 davidg Exp $ + * $Id: trap.c,v 1.56 1995/07/16 10:31:26 joerg Exp $ */ /* @@ -952,13 +952,9 @@ linux_syscall(frame) #ifdef KTRACE if (KTRPOINT(p, KTR_SYSCALL)) - ktrsyscall(p->p_tracep, code, callp->sy_narg, &args); + ktrsyscall(p->p_tracep, code, callp->sy_narg, (int *)&args); #endif -#ifdef KTRACE - if (KTRPOINT(p, KTR_SYSCALL)) - ktrsyscall(p->p_tracep, code, callp->sy_narg, &args); -#endif rval[0] = 0; rval[1] = frame.tf_edx;