summaryrefslogtreecommitdiffstats
path: root/plugins/epan/wimax/msg_clk_cmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/epan/wimax/msg_clk_cmp.c')
-rw-r--r--plugins/epan/wimax/msg_clk_cmp.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/epan/wimax/msg_clk_cmp.c b/plugins/epan/wimax/msg_clk_cmp.c
index 3fac08db..95411ef0 100644
--- a/plugins/epan/wimax/msg_clk_cmp.c
+++ b/plugins/epan/wimax/msg_clk_cmp.c
@@ -24,24 +24,24 @@ void proto_reg_handoff_mac_mgmt_msg_clk_cmp(void);
static dissector_handle_t clk_cmp_handle;
-static gint proto_mac_mgmt_msg_clk_cmp_decoder = -1;
+static int proto_mac_mgmt_msg_clk_cmp_decoder;
-static gint ett_mac_mgmt_msg_clk_cmp_decoder = -1;
+static int ett_mac_mgmt_msg_clk_cmp_decoder;
/* CLK_CMP fields */
-static gint hf_clk_cmp_clock_count = -1;
-static gint hf_clk_cmp_clock_id = -1;
-static gint hf_clk_cmp_seq_number = -1;
-static gint hf_clk_cmp_comparison_value = -1;
-/* static gint hf_clk_cmp_invalid_tlv = -1; */
+static int hf_clk_cmp_clock_count;
+static int hf_clk_cmp_clock_id;
+static int hf_clk_cmp_seq_number;
+static int hf_clk_cmp_comparison_value;
+/* static int hf_clk_cmp_invalid_tlv; */
/* Decode CLK_CMP messages. */
static int dissect_mac_mgmt_msg_clk_cmp_decoder(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
- guint offset = 0;
- guint i;
- guint clock_count;
+ unsigned offset = 0;
+ unsigned i;
+ unsigned clock_count;
proto_item *clk_cmp_item;
proto_tree *clk_cmp_tree;
@@ -51,7 +51,7 @@ static int dissect_mac_mgmt_msg_clk_cmp_decoder(tvbuff_t *tvb, packet_info *pinf
/* add MAC CLK_CMP subtree */
clk_cmp_tree = proto_item_add_subtree(clk_cmp_item, ett_mac_mgmt_msg_clk_cmp_decoder);
/* get the clock count */
- clock_count = tvb_get_guint8(tvb, offset);
+ clock_count = tvb_get_uint8(tvb, offset);
/* display the clock count */
proto_tree_add_item(clk_cmp_tree, hf_clk_cmp_clock_count, tvb, offset, 1, ENC_BIG_ENDIAN);
/* set the offset for clock comparison */
@@ -114,7 +114,7 @@ void proto_register_mac_mgmt_msg_clk_cmp(void)
};
/* Setup protocol subtree array */
- static gint *ett[] =
+ static int *ett[] =
{
&ett_mac_mgmt_msg_clk_cmp_decoder,
};