From 8734f3020716976319f03f911d40bd945c326a2c Mon Sep 17 00:00:00 2001 From: Krystof Vasa Date: Mon, 12 Aug 2013 13:28:11 +0100 Subject: [PATCH] mempool --- include/libunwind_i.h | 2 +- mempool.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libunwind_i.h b/include/libunwind_i.h index 5ad817f..70a94f1 100644 --- a/include/libunwind_i.h +++ b/include/libunwind_i.h @@ -142,7 +142,7 @@ static inline void mark_as_used(void *v UNUSED) { #endif #define GET_MEMORY(mem, size, type) \ do { \ - mem = malloc(size, type, M_WAITOK) \ + mem = malloc(size, type, M_WAITOK); \ } while (0) #define unwi_find_dynamic_proc_info UNWI_OBJ(find_dynamic_proc_info) diff --git a/mempool.c b/mempool.c index e6422a7..53652ee 100644 --- a/mempool.c +++ b/mempool.c @@ -125,7 +125,7 @@ HIDDEN void mempool_init (struct mempool *pool, size_t obj_size, size_t reserve) { if (pg_size == 0) - pg_size = getpagesize (); + pg_size = PAGE_SIZE; memset (pool, 0, sizeof (*pool));