aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-v120.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-v120.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-v120.c')
-rw-r--r--epan/dissectors/packet-v120.c78
1 files changed, 39 insertions, 39 deletions
diff --git a/epan/dissectors/packet-v120.c b/epan/dissectors/packet-v120.c
index 01661c4d4c..c814064f76 100644
--- a/epan/dissectors/packet-v120.c
+++ b/epan/dissectors/packet-v120.c
@@ -16,46 +16,46 @@
void proto_register_v120(void);
-static int proto_v120 = -1;
-static int hf_v120_address = -1;
-static int hf_v120_rc = -1;
-static int hf_v120_lli = -1;
-static int hf_v120_ea0 = -1;
-static int hf_v120_ea1 = -1;
-static int hf_v120_control = -1;
-static int hf_v120_n_r = -1;
-static int hf_v120_n_s = -1;
-static int hf_v120_p = -1;
-static int hf_v120_p_ext = -1;
-static int hf_v120_f = -1;
-static int hf_v120_f_ext = -1;
-static int hf_v120_s_ftype = -1;
-static int hf_v120_u_modifier_cmd = -1;
-static int hf_v120_u_modifier_resp = -1;
-static int hf_v120_ftype_i = -1;
-static int hf_v120_ftype_s_u = -1;
-static int hf_v120_ftype_s_u_ext = -1;
-static int hf_v120_header8 = -1;
-static int hf_v120_header_ext8 = -1;
-static int hf_v120_header_break8 = -1;
-static int hf_v120_header_error_control8 = -1;
-static int hf_v120_header_segb8 = -1;
-static int hf_v120_header_segf8 = -1;
-static int hf_v120_header16 = -1;
-static int hf_v120_header_ext16 = -1;
-static int hf_v120_header_break16 = -1;
-static int hf_v120_header_error_control16 = -1;
-static int hf_v120_header_segb16 = -1;
-static int hf_v120_header_segf16 = -1;
-static int hf_v120_header_e = -1;
-static int hf_v120_header_dr = -1;
-static int hf_v120_header_sr = -1;
-static int hf_v120_header_rr = -1;
+static int proto_v120;
+static int hf_v120_address;
+static int hf_v120_rc;
+static int hf_v120_lli;
+static int hf_v120_ea0;
+static int hf_v120_ea1;
+static int hf_v120_control;
+static int hf_v120_n_r;
+static int hf_v120_n_s;
+static int hf_v120_p;
+static int hf_v120_p_ext;
+static int hf_v120_f;
+static int hf_v120_f_ext;
+static int hf_v120_s_ftype;
+static int hf_v120_u_modifier_cmd;
+static int hf_v120_u_modifier_resp;
+static int hf_v120_ftype_i;
+static int hf_v120_ftype_s_u;
+static int hf_v120_ftype_s_u_ext;
+static int hf_v120_header8;
+static int hf_v120_header_ext8;
+static int hf_v120_header_break8;
+static int hf_v120_header_error_control8;
+static int hf_v120_header_segb8;
+static int hf_v120_header_segf8;
+static int hf_v120_header16;
+static int hf_v120_header_ext16;
+static int hf_v120_header_break16;
+static int hf_v120_header_error_control16;
+static int hf_v120_header_segb16;
+static int hf_v120_header_segf16;
+static int hf_v120_header_e;
+static int hf_v120_header_dr;
+static int hf_v120_header_sr;
+static int hf_v120_header_rr;
-static gint ett_v120 = -1;
-static gint ett_v120_address = -1;
-static gint ett_v120_control = -1;
-static gint ett_v120_header = -1;
+static gint ett_v120;
+static gint ett_v120_address;
+static gint ett_v120_control;
+static gint ett_v120_header;
static int dissect_v120_header(tvbuff_t *tvb, int offset, proto_tree *tree);