From a6c011ff2f8ddeb11d2e780344f083b150ddec65 Mon Sep 17 00:00:00 2001 From: tholo Date: Sun, 28 Apr 1996 00:26:46 +0000 Subject: [PATCH] First argument to profil(2) should be `char *', not `caddr_t'. --- sys/kern/subr_prof.c | 6 +++--- sys/kern/syscalls.master | 4 ++-- sys/sys/syscallargs.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index 09f570c05b8..0f68cb036cd 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prof.c,v 1.4 1996/04/21 22:27:21 deraadt Exp $ */ +/* $OpenBSD: subr_prof.c,v 1.5 1996/04/28 00:26:46 tholo Exp $ */ /* $NetBSD: subr_prof.c,v 1.11 1996/03/17 02:44:40 pk Exp $ */ /*- @@ -157,7 +157,7 @@ sys_profil(p, v, retval) register_t *retval; { register struct sys_profil_args /* { - syscallarg(caddr_t) samples; + syscallarg(char *) samples; syscallarg(u_int) size; syscallarg(u_int) offset; syscallarg(u_int) scale; @@ -177,7 +177,7 @@ sys_profil(p, v, retval) s = splstatclock(); upp->pr_off = SCARG(uap, offset); upp->pr_scale = SCARG(uap, scale); - upp->pr_base = SCARG(uap, samples); + upp->pr_base = (caddr_t)SCARG(uap, samples); upp->pr_size = SCARG(uap, size); startprofclock(p); splx(s); diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index bcedcdb3d73..c0b0f2d11f7 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ - $OpenBSD: syscalls.master,v 1.6 1996/04/19 16:09:07 niklas Exp $ + $OpenBSD: syscalls.master,v 1.7 1996/04/28 00:26:47 tholo Exp $ ; $NetBSD: syscalls.master,v 1.31 1996/02/27 04:20:41 jonathan Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -97,7 +97,7 @@ 41 STD { int sys_dup(u_int fd); } 42 STD { int sys_pipe(void); } 43 STD { gid_t sys_getegid(void); } -44 STD { int sys_profil(caddr_t samples, size_t size, \ +44 STD { int sys_profil(char *samples, size_t size, \ u_long offset, u_int scale); } #ifdef KTRACE 45 STD { int sys_ktrace(char *fname, int ops, int facs, \ diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h index 124b67c0f0d..c692ed22ca9 100644 --- a/sys/sys/syscallargs.h +++ b/sys/sys/syscallargs.h @@ -192,7 +192,7 @@ struct sys_dup_args { }; struct sys_profil_args { - syscallarg(caddr_t) samples; + syscallarg(char *) samples; syscallarg(size_t) size; syscallarg(u_long) offset; syscallarg(u_int) scale; -- 2.20.1