diff options
author | root <root> | 2001-07-23 22:09:39 +0000 |
---|---|---|
committer | root <root> | 2001-07-23 22:09:39 +0000 |
commit | c0eb24d7d01d618ad5631b80e34a37ada2df3d73 (patch) | |
tree | d5fe70403eb1d8ecaee3291d2d203b627051fbe9 | |
parent | 170ad2abfc9db69c855119aadc9eeffb83e3ac16 (diff) |
*** empty log message ***
-rw-r--r-- | coro.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -46,7 +46,7 @@ coro_init (void) volatile coro_func func = coro_init_func; volatile void *arg = coro_init_arg; - coro_transfer (new_coro, create_coro); + coro_transfer ((coro_context *)new_coro, (coro_context *)create_coro); func (arg); @@ -63,7 +63,7 @@ static volatile int trampoline_count; static void trampoline(int sig) { - if (setjmp (&(new_coro->env))) + if (setjmp (&(((coro_context *)new_coro)->env))) coro_init (); /* start it */ else trampoline_count++; @@ -159,7 +159,7 @@ void coro_create(coro_context *ctx, # endif - coro_transfer (create_coro, new_coro); + coro_transfer ((coro_context *)create_coro, (coro_context *)new_coro); #else error unsupported architecture |