X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fmempool.c;h=521724a8b582accde6f68a649f793c0d5c05e6ba;hb=5de81f1debc4341fb3af4e756b0a18e196d5ba13;hp=d04e15ef815510bf1a97e42d859b4b05daa01a86;hpb=1cf8ac51f5495ccd5187dc220ffc69e95d6e0cfc;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