ucx/mempool.c

changeset 57
e18157c52985
parent 50
ff194559eb41
child 69
fb59270b1de3
--- a/ucx/mempool.c	Tue Oct 09 15:02:40 2012 +0200
+++ b/ucx/mempool.c	Tue Oct 09 16:46:29 2012 +0200
@@ -5,7 +5,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 #include "mempool.h"
 
@@ -42,7 +41,7 @@
 int ucx_mempool_chcap(UcxMempool *pool, size_t newcap) {
     void **data = realloc(pool->data, newcap*sizeof(void*));
     if (data == NULL) {
-        return ENOMEM;
+        return 1;
     } else {
         pool->data = data; 
         pool->size = newcap;

mercurial