aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsmtap_log.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-gsmtap_log.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-gsmtap_log.c')
-rw-r--r--epan/dissectors/packet-gsmtap_log.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/epan/dissectors/packet-gsmtap_log.c b/epan/dissectors/packet-gsmtap_log.c
index 92e984a817..a570ad38d3 100644
--- a/epan/dissectors/packet-gsmtap_log.c
+++ b/epan/dissectors/packet-gsmtap_log.c
@@ -20,18 +20,18 @@ void proto_reg_handoff_gsmtap_log(void);
static dissector_handle_t gsmtap_log_handle;
-static int proto_gsmtap_log = -1;
-
-static int hf_log_ident = -1;
-static int hf_log_subsys = -1;
-static int hf_log_file_name = -1;
-static int hf_log_file_line = -1;
-static int hf_log_ts = -1;
-static int hf_log_pid = -1;
-static int hf_log_level = -1;
-static int hf_log_string = -1;
-
-static int ett_gsmtap_log = -1;
+static int proto_gsmtap_log;
+
+static int hf_log_ident;
+static int hf_log_subsys;
+static int hf_log_file_name;
+static int hf_log_file_line;
+static int hf_log_ts;
+static int hf_log_pid;
+static int hf_log_level;
+static int hf_log_string;
+
+static int ett_gsmtap_log;
/* from libosmocore include/osmocom/core/logging.h */
static const value_string gsmtap_log_levels[] = {