aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cisco-sm.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-cisco-sm.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-cisco-sm.c')
-rw-r--r--epan/dissectors/packet-cisco-sm.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/epan/dissectors/packet-cisco-sm.c b/epan/dissectors/packet-cisco-sm.c
index cda29697eb..15c749bb09 100644
--- a/epan/dissectors/packet-cisco-sm.c
+++ b/epan/dissectors/packet-cisco-sm.c
@@ -220,31 +220,31 @@ static const value_string sm_pdu_type_value[] = {
/* Initialize the protocol and registered fields */
-static int proto_sm = -1;
-
-static int hf_sm_sm_msg_type = -1;
-static int hf_sm_protocol = -1;
-static int hf_sm_msg_id = -1;
-static int hf_sm_msg_type = -1;
-static int hf_sm_channel = -1;
-static int hf_sm_bearer = -1;
-static int hf_sm_len = -1;
-static int hf_sm_ip_addr = -1;
-static int hf_sm_context = -1;
-static int hf_sm_eisup_msg_id = -1;
-static int hf_sm_tag = -1;
-static int hf_sm_alignment_type = -1;
-static int hf_sm_backhaul_reason_code = -1;
-static int hf_sm_backhaul_event_code = -1;
-static int hf_sm_backhaul_cause_code = -1;
-static int hf_sm_linkdown_cause_code = -1;
-static int hf_sm_retrieval_type = -1;
-static int hf_sm_lsc_state_type = -1;
-static int hf_sm_stat_request_type = -1;
-static int hf_sm_bsn_num = -1;
+static int proto_sm;
+
+static int hf_sm_sm_msg_type;
+static int hf_sm_protocol;
+static int hf_sm_msg_id;
+static int hf_sm_msg_type;
+static int hf_sm_channel;
+static int hf_sm_bearer;
+static int hf_sm_len;
+static int hf_sm_ip_addr;
+static int hf_sm_context;
+static int hf_sm_eisup_msg_id;
+static int hf_sm_tag;
+static int hf_sm_alignment_type;
+static int hf_sm_backhaul_reason_code;
+static int hf_sm_backhaul_event_code;
+static int hf_sm_backhaul_cause_code;
+static int hf_sm_linkdown_cause_code;
+static int hf_sm_retrieval_type;
+static int hf_sm_lsc_state_type;
+static int hf_sm_stat_request_type;
+static int hf_sm_bsn_num;
/* Initialize the subtree pointers */
-static gint ett_sm = -1;
+static gint ett_sm;
static dissector_handle_t sdp_handle;
static dissector_handle_t mtp3_handle;