aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cnip.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2023-11-20 08:16:40 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2023-11-20 08:20:54 +0100
commit2a9bc63325c99653c5da873c273430add3b5e9dd (patch)
tree120dee357b44bb38baf6ca9cf592e0cef6e4bea3 /epan/dissectors/packet-cnip.c
parente8e16400d8e3f933bd0eb1f06c661557a28e4ed4 (diff)
Remove init of proto variables
Remove init of proto, header field, expert info and subtree variables. This will reduces the binary size by approximate 1266320 bytes due to using .bss to zero-initialize the fields. The conversion is done using the tools/convert-proto-init.py script.
Diffstat (limited to 'epan/dissectors/packet-cnip.c')
-rw-r--r--epan/dissectors/packet-cnip.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/epan/dissectors/packet-cnip.c b/epan/dissectors/packet-cnip.c
index f5d802b3a8..7a22e4503f 100644
--- a/epan/dissectors/packet-cnip.c
+++ b/epan/dissectors/packet-cnip.c
@@ -43,24 +43,24 @@ void proto_reg_handoff_cnip(void);
static dissector_handle_t cnip_handle;
-static gint hf_cnip_len = -1;
-static gint hf_cnip_ver = -1;
-static gint hf_cnip_type = -1;
-static gint hf_cnip_exth = -1;
-static gint hf_cnip_pf = -1;
-static gint hf_cnip_pf_sec = -1;
-static gint hf_cnip_pf_pcode = -1;
-static gint hf_cnip_vcode = -1;
-static gint hf_cnip_sessid = -1;
-static gint hf_cnip_seqno = -1;
-static gint hf_cnip_tstamp = -1;
-
-static gint proto_cnip = -1;
-
-static gint ett_cnip = -1;
-static gint ett_pf = -1;
-
-static expert_field ei_cnip_type_unknown = EI_INIT;
+static gint hf_cnip_len;
+static gint hf_cnip_ver;
+static gint hf_cnip_type;
+static gint hf_cnip_exth;
+static gint hf_cnip_pf;
+static gint hf_cnip_pf_sec;
+static gint hf_cnip_pf_pcode;
+static gint hf_cnip_vcode;
+static gint hf_cnip_sessid;
+static gint hf_cnip_seqno;
+static gint hf_cnip_tstamp;
+
+static gint proto_cnip;
+
+static gint ett_cnip;
+static gint ett_pf;
+
+static expert_field ei_cnip_type_unknown;
static dissector_table_t cnip_dissector_table;