summaryrefslogtreecommitdiffstats
path: root/plugins/epan/wimax/wimax_hack_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/epan/wimax/wimax_hack_decoder.c')
-rw-r--r--plugins/epan/wimax/wimax_hack_decoder.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/epan/wimax/wimax_hack_decoder.c b/plugins/epan/wimax/wimax_hack_decoder.c
index 1c44e299..19442d0c 100644
--- a/plugins/epan/wimax/wimax_hack_decoder.c
+++ b/plugins/epan/wimax/wimax_hack_decoder.c
@@ -19,10 +19,10 @@
#include <epan/packet.h>
#include "wimax-int.h"
-extern gint proto_wimax;
+extern int proto_wimax;
-static gint proto_wimax_hack_decoder = -1;
-static gint ett_wimax_hack_decoder = -1;
+static int proto_wimax_hack_decoder;
+static int ett_wimax_hack_decoder;
static const value_string vals_flags[] =
{
@@ -38,18 +38,18 @@ static const value_string vals_values[] =
{0, NULL}
};
-/* static gint hf_hack_burst = -1; */
-static gint hf_hack_num_of_hacks = -1;
-static gint hf_hack_half_slot_flag = -1;
-static gint hf_hack_subchannel = -1;
-static gint hf_hack_symboloffset = -1;
-static gint hf_hack_value = -1;
+/* static int hf_hack_burst; */
+static int hf_hack_num_of_hacks;
+static int hf_hack_half_slot_flag;
+static int hf_hack_subchannel;
+static int hf_hack_symboloffset;
+static int hf_hack_value;
static int dissect_wimax_hack_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
- gint offset = 0;
- guint length, num_of_hacks, i;
+ int offset = 0;
+ unsigned length, num_of_hacks, i;
proto_item *hack_item = NULL;
proto_tree *hack_tree = NULL;
@@ -64,7 +64,7 @@ static int dissect_wimax_hack_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_t
/* add HARQ ACK Burst subtree */
hack_tree = proto_item_add_subtree(hack_item, ett_wimax_hack_decoder);
/* get the number of HARQ ACKs */
- num_of_hacks = tvb_get_guint8(tvb, offset);
+ num_of_hacks = tvb_get_uint8(tvb, offset);
/* display the number of HARQ ACKs */
proto_tree_add_item(hack_tree, hf_hack_num_of_hacks, tvb, offset++, 1, ENC_BIG_ENDIAN);
/* display the HARQ ACKs */
@@ -114,7 +114,7 @@ void wimax_proto_register_wimax_hack(void)
};
/* Setup protocol subtree array */
- static gint *ett[] =
+ static int *ett[] =
{
&ett_wimax_hack_decoder,
};