diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index c69d07584990..ef5f68221614 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_prof.c,v 1.39 2007/03/04 06:03:09 christos Exp $ */ +/* $NetBSD: subr_prof.c,v 1.40 2007/03/06 16:16:02 drochner Exp $ */ /*- * Copyright (c) 1982, 1986, 1993 @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_prof.c,v 1.39 2007/03/04 06:03:09 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_prof.c,v 1.40 2007/03/06 16:16:02 drochner Exp $"); #include #include @@ -218,7 +218,7 @@ int sys_profil(struct lwp *l, void *v, register_t *retval) { struct sys_profil_args /* { - syscallarg(void *) samples; + syscallarg(char *) samples; syscallarg(u_int) size; syscallarg(u_int) offset; syscallarg(u_int) scale; @@ -288,7 +288,7 @@ addupc_intr(struct lwp *l, u_long pc) (i = PC_TO_INDEX(pc, prof)) >= prof->pr_size) return; /* out of range; ignore */ - addr = (char *)prof->pr_base + i; + addr = prof->pr_base + i; mutex_spin_exit(&p->p_stmutex); if ((v = fuswintr(addr)) == -1 || suswintr(addr, v + 1) == -1) { /* XXXSMP */ @@ -328,7 +328,7 @@ addupc_task(struct lwp *l, u_long pc, u_int ticks) return; } - addr = (char *)prof->pr_base + i; + addr = prof->pr_base + i; mutex_spin_exit(&p->p_stmutex); if ((error = copyin(addr, (void *)&v, sizeof(v))) == 0) { v += ticks; diff --git a/sys/sys/resourcevar.h b/sys/sys/resourcevar.h index ccd1c029cdfb..68ca8ba7c2cc 100644 --- a/sys/sys/resourcevar.h +++ b/sys/sys/resourcevar.h @@ -1,4 +1,4 @@ -/* $NetBSD: resourcevar.h,v 1.34 2007/03/04 06:03:41 christos Exp $ */ +/* $NetBSD: resourcevar.h,v 1.35 2007/03/06 16:16:02 drochner Exp $ */ /* * Copyright (c) 1991, 1993 @@ -50,7 +50,7 @@ struct pstats { struct itimerval p_timer[3]; /* virtual-time timers */ struct uprof { /* profile arguments */ - void * pr_base; /* buffer base */ + char * pr_base; /* buffer base */ size_t pr_size; /* buffer size */ u_long pr_off; /* pc offset */ u_int pr_scale; /* pc scaling */