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-stat.c | 46 +++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'epan/dissectors/packet-stat.c') diff --git a/epan/dissectors/packet-stat.c b/epan/dissectors/packet-stat.c index 01373cec60..69f3af4305 100644 --- a/epan/dissectors/packet-stat.c +++ b/epan/dissectors/packet-stat.c @@ -38,29 +38,29 @@ static const value_string stat_res[] = { 0, NULL } }; -static int proto_stat = -1; - -static int hf_stat_mon = -1; -static int hf_stat_mon_id_name = -1; -static int hf_stat_mon_name = -1; -static int hf_stat_my_id = -1; -static int hf_stat_my_id_hostname = -1; -static int hf_stat_my_id_proc = -1; -static int hf_stat_my_id_prog = -1; -static int hf_stat_my_id_vers = -1; -static int hf_stat_priv = -1; -static int hf_stat_procedure_v1 = -1; -static int hf_stat_stat_chge = -1; -static int hf_stat_stat_res = -1; -static int hf_stat_stat_res_res = -1; -static int hf_stat_stat_res_state = -1; -static int hf_stat_state = -1; - -static gint ett_stat = -1; -static gint ett_stat_stat_res = -1; -static gint ett_stat_mon = -1; -static gint ett_stat_my_id = -1; -static gint ett_stat_stat_chge = -1; +static int proto_stat; + +static int hf_stat_mon; +static int hf_stat_mon_id_name; +static int hf_stat_mon_name; +static int hf_stat_my_id; +static int hf_stat_my_id_hostname; +static int hf_stat_my_id_proc; +static int hf_stat_my_id_prog; +static int hf_stat_my_id_vers; +static int hf_stat_priv; +static int hf_stat_procedure_v1; +static int hf_stat_stat_chge; +static int hf_stat_stat_res; +static int hf_stat_stat_res_res; +static int hf_stat_stat_res_state; +static int hf_stat_state; + +static gint ett_stat; +static gint ett_stat_stat_res; +static gint ett_stat_mon; +static gint ett_stat_my_id; +static gint ett_stat_stat_chge; #define STAT_SUCC 0 #define STAT_FAIL 1 -- cgit v1.2.3