aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-06-18 02:18:27 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-06-18 02:18:27 +0000
commitecadcda85dc61d927369fbc4a808f4b5767239d6 (patch)
tree90c18fd2b2f7ddb3e9eac08059e59c3e0068f743 /epan/proto.h
parent89bc50802cc54053da815c4e153b4a8c924a8c61 (diff)
From Joerg Mayer: explicitly fill in all members of a
"header_field_info" structure, including the ones that are later set by the routines to register fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3561 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/epan/proto.h b/epan/proto.h
index e3be5efb61..ff373f4647 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -1,7 +1,7 @@
/* proto.h
* Definitions for protocol display
*
- * $Id: proto.h,v 1.12 2001/06/05 07:38:35 guy Exp $
+ * $Id: proto.h,v 1.13 2001/06/18 02:18:24 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -102,7 +102,12 @@ struct _header_field_info {
header_field_info *same_name_prev; /* Link to previous hfinfo with same abbrev*/
};
-
+/*
+ * HFILL initializes all the "set by proto routines" fields in a
+ * "header_field_info"; if new fields are added or removed, it should
+ * be changed as necessary.
+ */
+#define HFILL 0, 0, 0, NULL, NULL
/* Used when registering many fields at once */
typedef struct hf_register_info {