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-lpd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'epan/dissectors/packet-lpd.c') diff --git a/epan/dissectors/packet-lpd.c b/epan/dissectors/packet-lpd.c index f6065eb14b..2dd3cc1add 100644 --- a/epan/dissectors/packet-lpd.c +++ b/epan/dissectors/packet-lpd.c @@ -20,14 +20,14 @@ static dissector_handle_t lpd_handle; #define TCP_PORT_PRINTER 515 -static int proto_lpd = -1; -static int hf_lpd_response = -1; -static int hf_lpd_request = -1; -static int hf_lpd_client_code = -1; -static int hf_lpd_printer_option = -1; -static int hf_lpd_response_code = -1; - -static gint ett_lpd = -1; +static int proto_lpd; +static int hf_lpd_response; +static int hf_lpd_request; +static int hf_lpd_client_code; +static int hf_lpd_printer_option; +static int hf_lpd_response_code; + +static gint ett_lpd; enum lpr_type { request, response, unknown }; -- cgit v1.2.3