summaryrefslogtreecommitdiff
path: root/cleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cleanup.c b/cleanup.c
index 472b7c6..7a7ea4e 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -6,6 +6,8 @@
* threads.
*/
+#include <errno.h>
+
#include <malloc.h>
#include "pthread.h"
#include "implement.h"
@@ -29,7 +31,7 @@ _pthread_handler_push(int stack,
if (new_thread == NULL)
{
- return ENOMEM;
+ return 0; /* NOMEM */
}
new_thread->routine = routine;