X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fmempool.h;h=0618b8dd223c8b7de0fcb2b88545aaa7844b7b69;hp=a0d081a698225c2161a010f357801880cc859a97;hb=9b00a533195b7fec54a791ca02090e0799214770;hpb=3b22396a4b2767a98172f6915929c47738cb0a1e diff --git a/src/basic/mempool.h b/src/basic/mempool.h index a0d081a69..0618b8dd2 100644 --- a/src/basic/mempool.h +++ b/src/basic/mempool.h @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - #pragma once /*** @@ -38,12 +36,12 @@ void* mempool_alloc0_tile(struct mempool *mp); void mempool_free_tile(struct mempool *mp, void *p); #define DEFINE_MEMPOOL(pool_name, tile_type, alloc_at_least) \ -struct mempool pool_name = { \ +static struct mempool pool_name = { \ .tile_size = sizeof(tile_type), \ .at_least = alloc_at_least, \ } #ifdef VALGRIND -// UNNEEDED void mempool_drop(struct mempool *mp); +void mempool_drop(struct mempool *mp); #endif