summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
authorroot <root>2008-05-11 20:08:37 +0000
committerroot <root>2008-05-11 20:08:37 +0000
commit501dd04e8b3d25c638e86ac9ba40395deee86d99 (patch)
tree2b9a690244adb5e7d484f13c169277ef733b18dd /eio.c
parent43f39ab64b4406552d75c6bdbf19ebd2b76c84df (diff)
*** empty log message ***
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eio.c b/eio.c
index b718297..d1679cd 100644
--- a/eio.c
+++ b/eio.c
@@ -10,7 +10,7 @@
#include <sys/stat.h>
#include <limits.h>
#include <fcntl.h>
-#include <sched.h>
+#include <assert.h>
#ifndef EIO_FINISH
# define EIO_FINISH(req) ((req)->finish) && !EIO_CANCELLED (req) ? (req)->finish (req) : 0
@@ -327,8 +327,8 @@ static void start_thread (void)
{
worker *wrk = calloc (1, sizeof (worker));
- if (!wrk)
- croak ("unable to allocate worker thread data");
+ /*TODO*/
+ assert (("unable to allocate worker thread data", !wrk));
X_LOCK (wrklock);