aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lmi.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-lmi.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-lmi.c')
-rw-r--r--epan/dissectors/packet-lmi.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/epan/dissectors/packet-lmi.c b/epan/dissectors/packet-lmi.c
index c81f511733..3c7f3dc964 100644
--- a/epan/dissectors/packet-lmi.c
+++ b/epan/dissectors/packet-lmi.c
@@ -30,22 +30,22 @@ void proto_reg_handoff_lmi(void);
static dissector_handle_t lmi_handle;
-static int proto_lmi = -1;
-static int hf_lmi_call_ref = -1;
-static int hf_lmi_msg_type = -1;
-static int hf_lmi_inf_ele = -1;
-static int hf_lmi_inf_len = -1;
-
-static int hf_lmi_rcd_type = -1;
-static int hf_lmi_send_seq = -1;
-static int hf_lmi_recv_seq = -1;
-static int hf_lmi_dlci_high = -1;
-static int hf_lmi_dlci_low = -1;
-static int hf_lmi_new = -1;
-static int hf_lmi_act = -1;
-
-static gint ett_lmi = -1;
-static gint ett_lmi_ele = -1;
+static int proto_lmi;
+static int hf_lmi_call_ref;
+static int hf_lmi_msg_type;
+static int hf_lmi_inf_ele;
+static int hf_lmi_inf_len;
+
+static int hf_lmi_rcd_type;
+static int hf_lmi_send_seq;
+static int hf_lmi_recv_seq;
+static int hf_lmi_dlci_high;
+static int hf_lmi_dlci_low;
+static int hf_lmi_new;
+static int hf_lmi_act;
+
+static gint ett_lmi;
+static gint ett_lmi_ele;
#ifdef _OLD_
/*