diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:26 +0000 |
commit | c4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch) | |
tree | 93d5c6aa93d9987680dd1adad5685e2ad698f223 /plugins/epan/wimax/msg_fpc.c | |
parent | Adding upstream version 4.2.6. (diff) | |
download | wireshark-upstream.tar.xz wireshark-upstream.zip |
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/epan/wimax/msg_fpc.c')
-rw-r--r-- | plugins/epan/wimax/msg_fpc.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/epan/wimax/msg_fpc.c b/plugins/epan/wimax/msg_fpc.c index 42b50141..9fc08769 100644 --- a/plugins/epan/wimax/msg_fpc.c +++ b/plugins/epan/wimax/msg_fpc.c @@ -25,29 +25,29 @@ void proto_reg_handoff_mac_mgmt_msg_fpc(void); static dissector_handle_t fpc_handle; -static gint proto_mac_mgmt_msg_fpc_decoder = -1; +static int proto_mac_mgmt_msg_fpc_decoder; -static gint ett_mac_mgmt_msg_fpc_decoder = -1; +static int ett_mac_mgmt_msg_fpc_decoder; /* FPC fields */ -static gint hf_fpc_number_of_stations = -1; -static gint hf_fpc_basic_cid = -1; -static gint hf_fpc_power_adjust = -1; -static gint hf_fpc_power_measurement_frame = -1; -/* static gint hf_fpc_invalid_tlv = -1; */ +static int hf_fpc_number_of_stations; +static int hf_fpc_basic_cid; +static int hf_fpc_power_adjust; +static int hf_fpc_power_measurement_frame; +/* static int hf_fpc_invalid_tlv; */ /* Decode FPC messages. */ static int dissect_mac_mgmt_msg_fpc_decoder(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) { - guint offset = 0; - guint i; - guint number_stations; - guint tvb_len; + unsigned offset = 0; + unsigned i; + unsigned number_stations; + unsigned tvb_len; proto_item *fpc_item; proto_tree *fpc_tree; - gint8 value; - gfloat power_change; + int8_t value; + float power_change; { /* we are being asked for details */ @@ -61,7 +61,7 @@ static int dissect_mac_mgmt_msg_fpc_decoder(tvbuff_t *tvb, packet_info *pinfo _U /* display the Number of stations */ proto_tree_add_item(fpc_tree, hf_fpc_number_of_stations, tvb, offset, 1, ENC_BIG_ENDIAN); - number_stations = tvb_get_guint8(tvb, offset); + number_stations = tvb_get_uint8(tvb, offset); offset++; for (i = 0; ((i < number_stations) && (offset >= tvb_len)); i++ ) { /* display the Basic CID*/ @@ -69,7 +69,7 @@ static int dissect_mac_mgmt_msg_fpc_decoder(tvbuff_t *tvb, packet_info *pinfo _U offset += 2; /* display the Power adjust value */ - value = tvb_get_gint8(tvb, offset); + value = tvb_get_int8(tvb, offset); power_change = (float)0.25 * value; /* 0.25dB incr */ /* display the Power adjust value in dB */ @@ -130,7 +130,7 @@ void proto_register_mac_mgmt_msg_fpc(void) }; /* Setup protocol subtree array */ - static gint *ett[] = + static int *ett[] = { &ett_mac_mgmt_msg_fpc_decoder, }; |