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