summaryrefslogtreecommitdiff
path: root/epan/proto.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/proto.h
parente4b6c50461a75857fe3c3ddc196882a055732564 (diff)
downloadwireshark-ed2ae2d8d3eb9bdf13562825d28a7a60869b5c56.tar.gz
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/proto.h')
-rw-r--r--epan/proto.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/proto.h b/epan/proto.h
index f508dd42da..cd557a5e67 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -1,7 +1,7 @@
/* proto.h
* Definitions for protocol display
*
- * $Id: proto.h,v 1.49 2003/12/02 21:15:47 guy Exp $
+ * $Id: proto.h,v 1.50 2003/12/03 08:53:36 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -104,7 +104,6 @@ typedef struct hf_register_info {
typedef struct _item_label_t {
- struct _item_label_t *next;
char representation[ITEM_LABEL_LENGTH];
} item_label_t;
@@ -137,7 +136,6 @@ typedef struct {
/* Each GNode (proto_tree, proto_item) points to one of
* these. */
typedef struct _proto_node {
- struct _proto_node *next;
field_info *finfo;
tree_data_t *tree_data;
} proto_node;