Fix fork_exit() to take a pointer to a function that returns void as its

first argument rather than a function that returns a void *.

Noticed by:	jake
This commit is contained in:
John Baldwin 2001-01-26 23:51:41 +00:00
parent a0346459f1
commit 8865286b9c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71696
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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));