summaryrefslogtreecommitdiff
path: root/cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cleanup.c b/cleanup.c
index 168b75f..9bf4a68 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -9,7 +9,7 @@
#include "pthread.h"
#include "implement.h"
-void
+int
_pthread_handler_push(int stack,
int poporder,
void (*routine)(void *),
@@ -27,7 +27,7 @@ _pthread_handler_push(int stack,
if (new == NULL)
{
- /* FIXME: INTERNAL ERROR */
+ return ENOMEM;
}
new->routine = routine;
@@ -60,6 +60,7 @@ _pthread_handler_push(int stack,
next = new;
}
}
+ return 0;
}
void