From 3cfc69e6c2a8a51bb277254e4dfed9dca2eaab98 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 29 Jan 1999 08:36:45 +0000 Subject: More -Wall / -Wcast-qual cleanup. Also, EXEC_SET can't use C_DECLARE_MODULE due to the linker_file_sysinit() function making modifications to the data. --- sys/amd64/amd64/vm_machdep.c | 6 +++--- sys/amd64/include/cpu.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/amd64') diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index d0bdc9393b55..297a10f0fed1 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.114 1998/12/16 15:21:51 bde Exp $ + * $Id: vm_machdep.c,v 1.115 1999/01/06 23:05:37 julian Exp $ */ #include "npx.h" @@ -201,8 +201,8 @@ cpu_fork(p1, p2) void cpu_set_fork_handler(p, func, arg) struct proc *p; - void (*func) __P((void *)); - void *arg; + void (*func) __P((const void *)); + const void *arg; { /* * Note that the trap frame follows the args, so the function diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h index 7b2ef5b10566..af69a36184d9 100644 --- a/sys/amd64/include/cpu.h +++ b/sys/amd64/include/cpu.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 - * $Id: cpu.h,v 1.35 1997/10/28 11:43:47 bde Exp $ + * $Id: cpu.h,v 1.36 1998/08/31 08:41:40 kato Exp $ */ #ifndef _MACHINE_CPU_H_ @@ -130,7 +130,7 @@ extern int want_resched; /* resched was called */ void fork_trampoline __P((void)); void fork_return __P((struct proc *, struct trapframe)); -void cpu_set_fork_handler __P((struct proc *, void (*pc)(void *), void *)); +void cpu_set_fork_handler __P((struct proc *, void (*pc)(const void *), const void *)); #endif #endif /* !_MACHINE_CPU_H_ */ -- cgit v1.3