1.1 --- a/ucx/mempool.c Tue Oct 09 15:02:40 2012 +0200 1.2 +++ b/ucx/mempool.c Tue Oct 09 16:46:29 2012 +0200 1.3 @@ -5,7 +5,6 @@ 1.4 #include <stdlib.h> 1.5 #include <string.h> 1.6 #include <stdio.h> 1.7 -#include <errno.h> 1.8 1.9 #include "mempool.h" 1.10 1.11 @@ -42,7 +41,7 @@ 1.12 int ucx_mempool_chcap(UcxMempool *pool, size_t newcap) { 1.13 void **data = realloc(pool->data, newcap*sizeof(void*)); 1.14 if (data == NULL) { 1.15 - return ENOMEM; 1.16 + return 1; 1.17 } else { 1.18 pool->data = data; 1.19 pool->size = newcap;