X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fmempool.c;h=521724a8b582accde6f68a649f793c0d5c05e6ba;hb=ae2b00416589dfe798fc40f0575f62a0c664798f;hp=d04e15ef815510bf1a97e42d859b4b05daa01a86;hpb=e938d9e3bf5c98b502178ee26d81a410890fb725;p=libucw.git diff --git a/ucw/mempool.c b/ucw/mempool.c index d04e15ef..521724a8 100644 --- a/ucw/mempool.c +++ b/ucw/mempool.c @@ -10,8 +10,8 @@ #undef LOCAL_DEBUG -#include "ucw/lib.h" -#include "ucw/mempool.h" +#include +#include #include @@ -344,13 +344,12 @@ void mp_pop(struct mempool *pool) { ASSERT(pool->state.next); - struct mempool_state state = pool->state; - mp_restore(pool, &state); + mp_restore(pool, pool->state.next); } #ifdef TEST -#include "ucw/getopt.h" +#include #include #include #include