--- IO-AIO/AIO.xs 2007/12/02 20:54:33 1.110 +++ IO-AIO/AIO.xs 2008/03/30 06:31:49 1.111 @@ -191,7 +191,7 @@ static int main_sig; static int block_sig_level; -void block_sig () +void block_sig (void) { sigset_t ss; @@ -206,7 +206,7 @@ pthread_sigmask (SIG_BLOCK, &ss, 0); } -void unblock_sig () +void unblock_sig (void) { sigset_t ss; @@ -276,7 +276,7 @@ #if WORDACCESS_UNSAFE -static unsigned int get_nready () +static unsigned int get_nready (void) { unsigned int retval; @@ -287,7 +287,7 @@ return retval; } -static unsigned int get_npending () +static unsigned int get_npending (void) { unsigned int retval; @@ -298,7 +298,7 @@ return retval; } -static unsigned int get_nthreads () +static unsigned int get_nthreads (void) { unsigned int retval; @@ -371,7 +371,7 @@ abort (); } -static int poll_cb (); +static int poll_cb (void); static int req_invoke (aio_req req); static void req_destroy (aio_req req); static void req_cancel (aio_req req); @@ -655,7 +655,7 @@ #endif static void -create_respipe () +create_respipe (void) { int old_readfd = respipe [0]; @@ -717,7 +717,7 @@ X_UNLOCK (wrklock); } -static void maybe_start_thread () +static void maybe_start_thread (void) { if (get_nthreads () >= wanted) return; @@ -787,7 +787,7 @@ end_thread (); } -static void poll_wait () +static void poll_wait (void) { fd_set rfd; @@ -810,7 +810,7 @@ } } -static int poll_cb () +static int poll_cb (void) { dSP; int count = 0; @@ -1994,7 +1994,6 @@ PUSHMARK (SP); PUTBACK; count = call_sv (cb, GIMME_V | G_NOARGS | G_EVAL); - SPAGAIN; unblock_sig (); if (SvTRUE (ERRSV))