summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_fork.c4
-rw-r--r--sys/sys/proc.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 8ad189e..2e2318f 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -643,7 +643,7 @@ rm_at_fork(function)
*/
void
fork_exit(callout, arg, frame)
- void *callout(void *, struct trapframe *);
+ void (*callout)(void *, struct trapframe *);
void *arg;
struct trapframe *frame;
{
@@ -666,7 +666,7 @@ fork_exit(callout, arg, frame)
* have this call a non-return function to stay in kernel mode.
* initproc has its own fork handler, but it does return.
*/
- (*callout)(arg, frame);
+ callout(arg, frame);
/*
* Check if a kernel thread misbehaved and returned from its main
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index b988887..b167444 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -505,7 +505,7 @@ int enterpgrp __P((struct proc *p, pid_t pgid, int mksess));
void faultin __P((struct proc *p));
void fixjobc __P((struct proc *p, struct pgrp *pgrp, int entering));
int fork1 __P((struct proc *, int, struct proc **));
-void fork_exit __P((void *(void *, struct trapframe *), void *,
+void fork_exit __P((void (*)(void *, struct trapframe *), void *,
struct trapframe *));
void fork_return __P((struct proc *, struct trapframe *));
int inferior __P((struct proc *p));
OpenPOWER on IntegriCloud