aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-08-06 20:53:47 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-08-06 20:53:47 +0000
commit9cfac1227d8fd1f6de1d9e47489ea49616a2bee2 (patch)
treef48731d0b0c293e6af6f3476eae8fef06908059f /epan/proto.h
parent72ea2f9c9c63c7e5c6270383888ad32683d96edf (diff)
Replace hfinfo pointer to same_name_prev, with same_name_prev_id.
svn path=/trunk/; revision=51175
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 8dfd85a05b..ee821185b1 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -373,9 +373,8 @@ struct _header_field_info {
int id; /**< Field ID */
int parent; /**< parent protocol tree */
hf_ref_type ref_type; /**< is this field referenced by a filter */
- /* 4B padding */
+ int same_name_prev_id; /**< ID of previous hfinfo with same abbrev */
header_field_info *same_name_next; /**< Link to next hfinfo with same abbrev */
- header_field_info *same_name_prev; /**< Link to previous hfinfo with same abbrev */
};
/**
@@ -383,7 +382,7 @@ struct _header_field_info {
* _header_field_info. If new fields are added or removed, it should
* be changed as necessary.
*/
-#define HFILL 0, 0, HF_REF_TYPE_NONE, NULL, NULL
+#define HFILL 0, 0, HF_REF_TYPE_NONE, -1, NULL
/** Used when registering many fields at once, using proto_register_field_array() */
typedef struct hf_register_info {