From 2a9bc63325c99653c5da873c273430add3b5e9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 20 Nov 2023 08:16:40 +0100 Subject: 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. --- epan/dissectors/packet-lmi.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'epan/dissectors/packet-lmi.c') 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_ /* -- cgit v1.2.3