]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/mempool.c
Sorter: Ah, fixed wrong include of time.h.
[libucw.git] / ucw / mempool.c
index d04e15ef815510bf1a97e42d859b4b05daa01a86..521724a8b582accde6f68a649f793c0d5c05e6ba 100644 (file)
@@ -10,8 +10,8 @@
 
 #undef LOCAL_DEBUG
 
-#include "ucw/lib.h"
-#include "ucw/mempool.h"
+#include <ucw/lib.h>
+#include <ucw/mempool.h>
 
 #include <string.h>
 
@@ -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 <ucw/getopt.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>