mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 17:54:52 +00:00
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:
parent
a0346459f1
commit
8865286b9c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71696
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue