aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-klm.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-klm.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-klm.c')
-rw-r--r--epan/dissectors/packet-klm.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/epan/dissectors/packet-klm.c b/epan/dissectors/packet-klm.c
index 5d15bfd195..ebc90d26d2 100644
--- a/epan/dissectors/packet-klm.c
+++ b/epan/dissectors/packet-klm.c
@@ -15,21 +15,21 @@
void proto_register_klm(void);
void proto_reg_handoff_klm(void);
-static int proto_klm = -1;
-static int hf_klm_procedure_v1 = -1;
-static int hf_klm_exclusive = -1;
-static int hf_klm_lock = -1;
-static int hf_klm_servername = -1;
-static int hf_klm_pid = -1;
-static int hf_klm_offset = -1;
-static int hf_klm_len = -1;
-static int hf_klm_stats = -1;
-static int hf_klm_holder = -1;
-static int hf_klm_block = -1;
-
-static gint ett_klm = -1;
-static gint ett_klm_lock = -1;
-static gint ett_klm_holder = -1;
+static int proto_klm;
+static int hf_klm_procedure_v1;
+static int hf_klm_exclusive;
+static int hf_klm_lock;
+static int hf_klm_servername;
+static int hf_klm_pid;
+static int hf_klm_offset;
+static int hf_klm_len;
+static int hf_klm_stats;
+static int hf_klm_holder;
+static int hf_klm_block;
+
+static gint ett_klm;
+static gint ett_klm_lock;
+static gint ett_klm_holder;
#define KLMPROC_TEST 1
#define KLMPROC_LOCK 2