From ed2ae2d8d3eb9bdf13562825d28a7a60869b5c56 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 3 Dec 2003 08:53:37 +0000 Subject: 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 --- epan/proto.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'epan/proto.h') 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 @@ -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; -- cgit v1.2.1