aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes/ftypes.h
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.h
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.h')
-rw-r--r--epan/ftypes/ftypes.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/ftypes/ftypes.h b/epan/ftypes/ftypes.h
index ab7052c904..b9e1067a08 100644
--- a/epan/ftypes/ftypes.h
+++ b/epan/ftypes/ftypes.h
@@ -1,7 +1,7 @@
/* ftypes.h
* Definitions for field types
*
- * $Id: ftypes.h,v 1.23 2003/12/02 21:15:48 guy Exp $
+ * $Id: ftypes.h,v 1.24 2003/12/03 08:53:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -128,7 +128,6 @@ ftype_can_contains(enum ftenum ftype);
typedef struct _fvalue_t {
union {
- struct _fvalue_t *next;
ftype_t *ftype;
} ptr_u;
union {
@@ -226,7 +225,7 @@ extern fvalue_t *fvalue_free_list;
#define FVALUE_FREE(fv) \
{ \
FVALUE_CLEANUP(fv) \
- SLAB_FREE(fv, fv->ptr_u.next, fvalue_free_list);\
+ SLAB_FREE(fv, fvalue_free_list); \
}