ppc32/64: correct signature of function parameter to makecontext
Because makecontext can pass a set of integer arguments to the provided function, it is incorrect to require that this function accept no parameters.pull/11/head
parent
a00a05ce29
commit
40d07758a5
|
@ -25,7 +25,7 @@ extern void __start_context(void);
|
|||
|
||||
|
||||
void
|
||||
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
||||
__makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
|
||||
{
|
||||
greg_t *sp;
|
||||
va_list va;
|
||||
|
|
|
@ -25,7 +25,7 @@ extern void __start_context(void);
|
|||
|
||||
|
||||
void
|
||||
__makecontext(ucontext_t *ucp, void (*func)(void), int argc, ...)
|
||||
__makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
|
||||
{
|
||||
greg_t *sp;
|
||||
va_list va;
|
||||
|
|
Loading…
Reference in New Issue