aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes/ftypes.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2011-05-09 12:52:55 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2011-05-09 12:52:55 +0000
commit17f6352c2e220fdfd23de2712cdd02154b3bd4cb (patch)
tree6468c238f2cd42d8dfa5c8c4b222f405c53dce41 /epan/ftypes/ftypes.c
parent0edf3eafa9aaf3ed67336c150423403c56c6cf5c (diff)
Convert SLAB_-s, to sl_-API.
svn path=/trunk/; revision=37030
Diffstat (limited to 'epan/ftypes/ftypes.c')
-rw-r--r--epan/ftypes/ftypes.c5
1 files changed, 3 insertions, 2 deletions
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;