aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-usb-ccid.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-usb-ccid.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-usb-ccid.c')
-rw-r--r--epan/dissectors/packet-usb-ccid.c198
1 files changed, 99 insertions, 99 deletions
diff --git a/epan/dissectors/packet-usb-ccid.c b/epan/dissectors/packet-usb-ccid.c
index d538294c61..ba57202fd3 100644
--- a/epan/dissectors/packet-usb-ccid.c
+++ b/epan/dissectors/packet-usb-ccid.c
@@ -20,98 +20,98 @@
#include <epan/prefs.h>
#include "packet-usb.h"
-static int proto_ccid = -1;
+static int proto_ccid;
static dissector_table_t subdissector_table;
-static int hf_ccid_bMessageType = -1;
-static int hf_ccid_dwLength = -1;
-static int hf_ccid_bSlot = -1;
-static int hf_ccid_bSeq = -1;
-static int hf_ccid_bStatus = -1;
-static int hf_ccid_bStatus_bmIccStatus = -1;
-static int hf_ccid_bStatus_bmCommandStatus = -1;
-static int hf_ccid_bError = -1;
-static int hf_ccid_bRFU = -1;
-static int hf_ccid_abRFU = -1;
-static int hf_ccid_bChainParameter = -1;
-static int hf_ccid_bPowerSelect = -1;
-static int hf_ccid_bClockStatus = -1;
-static int hf_ccid_bProtocolNum = -1;
-static int hf_ccid_bBWI = -1;
-static int hf_ccid_wLevelParameter = -1;
-static int hf_ccid_bcdCCID = -1;
-static int hf_ccid_bMaxSlotIndex = -1;
-static int hf_ccid_bVoltageSupport = -1;
-static int hf_ccid_bVoltageSupport18 = -1;
-static int hf_ccid_bVoltageSupport30 = -1;
-static int hf_ccid_bVoltageSupport50 = -1;
-static int hf_ccid_dwProtocols = -1;
-static int hf_ccid_dwProtocols_t0 = -1;
-static int hf_ccid_dwProtocols_t1 = -1;
-static int hf_ccid_dwDefaultClock = -1;
-static int hf_ccid_dwMaximumClock = -1;
-static int hf_ccid_bNumClockSupported = -1;
-static int hf_ccid_dwDataRate = -1;
-static int hf_ccid_dwMaxDataRate = -1;
-static int hf_ccid_bNumDataRatesSupported = -1;
-static int hf_ccid_dwMaxIFSD = -1;
-static int hf_ccid_dwSynchProtocols = -1;
-static int hf_ccid_dwMechanical = -1;
-static int hf_ccid_dwFeatures = -1;
-static int hf_ccid_dwFeatures_autoParam = -1;
-static int hf_ccid_dwFeatures_autoIccActivation = -1;
-static int hf_ccid_dwFeatures_autoIccVoltSelect = -1;
-static int hf_ccid_dwFeatures_autoIccClk = -1;
-static int hf_ccid_dwFeatures_autoBaudRate = -1;
-static int hf_ccid_dwFeatures_autoParamNegotiation = -1;
-static int hf_ccid_dwFeatures_autoPPS = -1;
-static int hf_ccid_dwFeatures_stopIccClk = -1;
-static int hf_ccid_dwFeatures_nadValNot0accept = -1;
-static int hf_ccid_dwFeatures_autoIfsd = -1;
-static int hf_ccid_dwFeatures_levelExchangeTDPU = -1;
-static int hf_ccid_dwFeatures_levelExchangeShortAPDU = -1;
-static int hf_ccid_dwFeatures_levelExchangeShortExtendedAPDU = -1;
-static int hf_ccid_dwFeatures_UsbWakeUp = -1;
-static int hf_ccid_dwMaxCCIDMessageLength = -1;
-static int hf_ccid_bClassGetResponse = -1;
-static int hf_ccid_bClassEnvelope = -1;
-static int hf_ccid_wLcdLayout = -1;
-static int hf_ccid_wLcdLayout_lines = -1;
-static int hf_ccid_wLcdLayout_chars = -1;
-static int hf_ccid_bPINSupport = -1;
-static int hf_ccid_bPINSupport_modify = -1;
-static int hf_ccid_bPINSupport_vrfy = -1;
-static int hf_ccid_bMaxCCIDBusySlots = -1;
-static int hf_ccid_Reserved = -1;
-static int hf_ccid_bmSlotICCState = -1;
-static int hf_ccid_bmSlotICCState_slot0Current = -1;
-static int hf_ccid_bmSlotICCState_slot0Changed = -1;
-static int hf_ccid_bmSlotICCState_slot1Current = -1;
-static int hf_ccid_bmSlotICCState_slot1Changed = -1;
-static int hf_ccid_bmSlotICCState_slot2Current = -1;
-static int hf_ccid_bmSlotICCState_slot2Changed = -1;
-static int hf_ccid_bmSlotICCState_slot3Current = -1;
-static int hf_ccid_bmSlotICCState_slot3Changed = -1;
-static int hf_ccid_bmSlotICCState_slot4Current = -1;
-static int hf_ccid_bmSlotICCState_slot4Changed = -1;
-static int hf_ccid_bmSlotICCState_slot5Current = -1;
-static int hf_ccid_bmSlotICCState_slot5Changed = -1;
-static int hf_ccid_bmSlotICCState_slot6Current = -1;
-static int hf_ccid_bmSlotICCState_slot6Changed = -1;
-static int hf_ccid_bmSlotICCState_slot7Current = -1;
-static int hf_ccid_bmSlotICCState_slot7Changed = -1;
-static int hf_ccid_bHardwareErrorCode = -1;
-static int hf_ccid_bmFindexDindex = -1;
-static int hf_ccid_bmTCCKST0 = -1;
-static int hf_ccid_bmTCCKST1 = -1;
-static int hf_ccid_bGuardTimeT0 = -1;
-static int hf_ccid_bGuardTimeT1 = -1;
-static int hf_ccid_bWaitingIntegerT0 = -1;
-static int hf_ccid_bmWaitingIntegersT1 = -1;
-static int hf_ccid_bClockStop = -1;
-static int hf_ccid_bIFSC = -1;
-static int hf_ccid_bNadValue = -1;
+static int hf_ccid_bMessageType;
+static int hf_ccid_dwLength;
+static int hf_ccid_bSlot;
+static int hf_ccid_bSeq;
+static int hf_ccid_bStatus;
+static int hf_ccid_bStatus_bmIccStatus;
+static int hf_ccid_bStatus_bmCommandStatus;
+static int hf_ccid_bError;
+static int hf_ccid_bRFU;
+static int hf_ccid_abRFU;
+static int hf_ccid_bChainParameter;
+static int hf_ccid_bPowerSelect;
+static int hf_ccid_bClockStatus;
+static int hf_ccid_bProtocolNum;
+static int hf_ccid_bBWI;
+static int hf_ccid_wLevelParameter;
+static int hf_ccid_bcdCCID;
+static int hf_ccid_bMaxSlotIndex;
+static int hf_ccid_bVoltageSupport;
+static int hf_ccid_bVoltageSupport18;
+static int hf_ccid_bVoltageSupport30;
+static int hf_ccid_bVoltageSupport50;
+static int hf_ccid_dwProtocols;
+static int hf_ccid_dwProtocols_t0;
+static int hf_ccid_dwProtocols_t1;
+static int hf_ccid_dwDefaultClock;
+static int hf_ccid_dwMaximumClock;
+static int hf_ccid_bNumClockSupported;
+static int hf_ccid_dwDataRate;
+static int hf_ccid_dwMaxDataRate;
+static int hf_ccid_bNumDataRatesSupported;
+static int hf_ccid_dwMaxIFSD;
+static int hf_ccid_dwSynchProtocols;
+static int hf_ccid_dwMechanical;
+static int hf_ccid_dwFeatures;
+static int hf_ccid_dwFeatures_autoParam;
+static int hf_ccid_dwFeatures_autoIccActivation;
+static int hf_ccid_dwFeatures_autoIccVoltSelect;
+static int hf_ccid_dwFeatures_autoIccClk;
+static int hf_ccid_dwFeatures_autoBaudRate;
+static int hf_ccid_dwFeatures_autoParamNegotiation;
+static int hf_ccid_dwFeatures_autoPPS;
+static int hf_ccid_dwFeatures_stopIccClk;
+static int hf_ccid_dwFeatures_nadValNot0accept;
+static int hf_ccid_dwFeatures_autoIfsd;
+static int hf_ccid_dwFeatures_levelExchangeTDPU;
+static int hf_ccid_dwFeatures_levelExchangeShortAPDU;
+static int hf_ccid_dwFeatures_levelExchangeShortExtendedAPDU;
+static int hf_ccid_dwFeatures_UsbWakeUp;
+static int hf_ccid_dwMaxCCIDMessageLength;
+static int hf_ccid_bClassGetResponse;
+static int hf_ccid_bClassEnvelope;
+static int hf_ccid_wLcdLayout;
+static int hf_ccid_wLcdLayout_lines;
+static int hf_ccid_wLcdLayout_chars;
+static int hf_ccid_bPINSupport;
+static int hf_ccid_bPINSupport_modify;
+static int hf_ccid_bPINSupport_vrfy;
+static int hf_ccid_bMaxCCIDBusySlots;
+static int hf_ccid_Reserved;
+static int hf_ccid_bmSlotICCState;
+static int hf_ccid_bmSlotICCState_slot0Current;
+static int hf_ccid_bmSlotICCState_slot0Changed;
+static int hf_ccid_bmSlotICCState_slot1Current;
+static int hf_ccid_bmSlotICCState_slot1Changed;
+static int hf_ccid_bmSlotICCState_slot2Current;
+static int hf_ccid_bmSlotICCState_slot2Changed;
+static int hf_ccid_bmSlotICCState_slot3Current;
+static int hf_ccid_bmSlotICCState_slot3Changed;
+static int hf_ccid_bmSlotICCState_slot4Current;
+static int hf_ccid_bmSlotICCState_slot4Changed;
+static int hf_ccid_bmSlotICCState_slot5Current;
+static int hf_ccid_bmSlotICCState_slot5Changed;
+static int hf_ccid_bmSlotICCState_slot6Current;
+static int hf_ccid_bmSlotICCState_slot6Changed;
+static int hf_ccid_bmSlotICCState_slot7Current;
+static int hf_ccid_bmSlotICCState_slot7Changed;
+static int hf_ccid_bHardwareErrorCode;
+static int hf_ccid_bmFindexDindex;
+static int hf_ccid_bmTCCKST0;
+static int hf_ccid_bmTCCKST1;
+static int hf_ccid_bGuardTimeT0;
+static int hf_ccid_bGuardTimeT1;
+static int hf_ccid_bWaitingIntegerT0;
+static int hf_ccid_bmWaitingIntegersT1;
+static int hf_ccid_bClockStop;
+static int hf_ccid_bIFSC;
+static int hf_ccid_bNadValue;
static dissector_handle_t usb_ccid_handle;
static dissector_handle_t usb_ccid_descr_handle;
@@ -349,16 +349,16 @@ static const value_string ccid_status_cmd_status_vals[] = {
};
/* Subtree handles: set by register_subtree_array */
-static gint ett_ccid = -1;
-static gint ett_ccid_desc = -1;
-static gint ett_ccid_protocol_data_structure = -1;
-static gint ett_ccid_voltage_level = -1;
-static gint ett_ccid_protocols = -1;
-static gint ett_ccid_features = -1;
-static gint ett_ccid_lcd_layout = -1;
-static gint ett_ccid_pin_support = -1;
-static gint ett_ccid_slot_change = -1;
-static gint ett_ccid_status = -1;
+static gint ett_ccid;
+static gint ett_ccid_desc;
+static gint ett_ccid_protocol_data_structure;
+static gint ett_ccid_voltage_level;
+static gint ett_ccid_protocols;
+static gint ett_ccid_features;
+static gint ett_ccid_lcd_layout;
+static gint ett_ccid_pin_support;
+static gint ett_ccid_slot_change;
+static gint ett_ccid_status;
static gint
dissect_usb_ccid_descriptor(tvbuff_t *tvb, packet_info *pinfo _U_,