aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-stat.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-stat.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-stat.c')
-rw-r--r--epan/dissectors/packet-stat.c46
1 files changed, 23 insertions, 23 deletions
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