summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-04-28 00:26:49 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-04-28 00:26:49 +0000
commit6d7449dfb93e62bcce0b1a055dbb8072ce9a64fe (patch)
treee54326d96b75d4081bb6810dfa454d4cb3feb9c6
parente34e5b119470f07f7e2b37d8e98dcafd120948c8 (diff)
First argument to profil(2) should be `char *', not `caddr_t'.
-rw-r--r--sys/kern/subr_prof.c6
-rw-r--r--sys/kern/syscalls.master4
-rw-r--r--sys/sys/syscallargs.h2
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;