diff options
Diffstat (limited to 'plugins/epan/wimax/mac_mgmt_msg_decoder.c')
-rw-r--r-- | plugins/epan/wimax/mac_mgmt_msg_decoder.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/epan/wimax/mac_mgmt_msg_decoder.c b/plugins/epan/wimax/mac_mgmt_msg_decoder.c index 57c03977..edd2ed04 100644 --- a/plugins/epan/wimax/mac_mgmt_msg_decoder.c +++ b/plugins/epan/wimax/mac_mgmt_msg_decoder.c @@ -23,13 +23,13 @@ void proto_register_mac_mgmt_msg(void); void proto_reg_handoff_mac_mgmt_msg(void); -static gint proto_mac_mgmt_msg_decoder = -1; -static gint ett_mac_mgmt_msg_decoder = -1; +static int proto_mac_mgmt_msg_decoder; +static int ett_mac_mgmt_msg_decoder; -static gint hf_mac_mgmt_msg_type = -1; -static gint hf_mac_mgmt_msg_values = -1; +static int hf_mac_mgmt_msg_type; +static int hf_mac_mgmt_msg_values; -static expert_field ei_empty_payload = EI_INIT; +static expert_field ei_empty_payload; static dissector_table_t subdissector_message_table; @@ -110,8 +110,8 @@ static value_string_ext mgt_msg_abbrv_vals_ext = VALUE_STRING_EXT_INIT(mgt_msg_a static int dissect_mac_mgmt_msg_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { - guint offset = 0; - guint message_type; + unsigned offset = 0; + unsigned message_type; proto_item *message_item; proto_tree *message_tree; const char* mgt_msg_str; @@ -127,7 +127,7 @@ static int dissect_mac_mgmt_msg_decoder(tvbuff_t *tvb, packet_info *pinfo, proto } /* Get the payload type */ - message_type = tvb_get_guint8(tvb, offset); + message_type = tvb_get_uint8(tvb, offset); proto_tree_add_item(message_tree, hf_mac_mgmt_msg_type, tvb, offset, 1, ENC_NA); mgt_msg_str = val_to_str_ext_const(message_type, &mgt_msg_abbrv_vals_ext, "Unknown"); @@ -179,7 +179,7 @@ void proto_register_mac_mgmt_msg(void) }; /* Setup protocol subtree array */ - static gint *ett[] = + static int *ett[] = { &ett_mac_mgmt_msg_decoder, }; |