aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes/ftypes.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-03 08:53:37 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-03 08:53:37 +0000
commited2ae2d8d3eb9bdf13562825d28a7a60869b5c56 (patch)
treebc3e86e9db9fbe92dba89286b43c85a60383dfad /epan/ftypes/ftypes.c
parente4b6c50461a75857fe3c3ddc196882a055732564 (diff)
Instead of requiring slab-allocated structures to have a "next" pointer,
when adding them to the free list, cast the pointer to the structure to a pointer to a "freed_item_t" which contains the "next" pointer. This reduces the memory requirement for some of those structures, and leaves us free to slab-allocate structures that have a "next" pointer for other reasons. svn path=/trunk/; revision=9150
Diffstat (limited to 'epan/ftypes/ftypes.c')
-rw-r--r--epan/ftypes/ftypes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/ftypes/ftypes.c b/epan/ftypes/ftypes.c
index 10ece8d278..6567a34807 100644
--- a/epan/ftypes/ftypes.c
+++ b/epan/ftypes/ftypes.c
@@ -1,5 +1,5 @@
/*
- * $Id: ftypes.c,v 1.16 2003/12/02 21:15:48 guy Exp $
+ * $Id: ftypes.c,v 1.17 2003/12/03 08:53:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -193,7 +193,7 @@ fvalue_new(ftenum_t ftype)
ftype_t *ft;
FvalueNewFunc new_value;
- SLAB_ALLOC(fv, fv->ptr_u.next, fvalue_free_list);
+ SLAB_ALLOC(fv, fvalue_free_list);
FTYPE_LOOKUP(ftype, ft);
fv->ptr_u.ftype = ft;