From 17f6352c2e220fdfd23de2712cdd02154b3bd4cb Mon Sep 17 00:00:00 2001 From: Jakub Zawadzki Date: Mon, 9 May 2011 12:52:55 +0000 Subject: Convert SLAB_-s, to sl_-API. svn path=/trunk/; revision=37030 --- epan/ftypes/ftypes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'epan/ftypes/ftypes.c') diff --git a/epan/ftypes/ftypes.c b/epan/ftypes/ftypes.c index 35e73aeb74..ec22cb2f8f 100644 --- a/epan/ftypes/ftypes.c +++ b/epan/ftypes/ftypes.c @@ -34,7 +34,8 @@ static ftype_t* type_list[FT_NUM_TYPES]; /* Space for quickly allocating/de-allocating fvalue_t's */ -SLAB_FREE_LIST_DEFINE(fvalue_t) +struct ws_memory_slab fvalue_t_slab = + WS_MEMORY_SLAB_INIT(fvalue_t, 128); /* Initialize the ftype module. */ void @@ -203,7 +204,7 @@ fvalue_new(ftenum_t ftype) ftype_t *ft; FvalueNewFunc new_value; - SLAB_ALLOC(fv, fvalue_t); + fv = sl_alloc(&fvalue_t_slab); FTYPE_LOOKUP(ftype, ft); fv->ftype = ft; -- cgit v1.2.3