aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-06-18 02:18:27 +0000
committerGuy Harris <guy@alum.mit.edu>2001-06-18 02:18:27 +0000
commit84123931970a8a0f1af281e7351eadabba3c0908 (patch)
tree90c18fd2b2f7ddb3e9eac08059e59c3e0068f743 /epan/proto.h
parentb9222c0011e362d2ba9895af4eaef04a3d72c8c6 (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. svn path=/trunk/; revision=3561
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 {