summaryrefslogtreecommitdiffstats
path: root/src/isi-selftest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/isi-selftest.c')
-rw-r--r--src/isi-selftest.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/isi-selftest.c b/src/isi-selftest.c
index 7576d1b..7e16fd9 100644
--- a/src/isi-selftest.c
+++ b/src/isi-selftest.c
@@ -23,6 +23,7 @@
#include <glib.h>
#include <epan/prefs.h>
#include <epan/packet.h>
+#include <epan/expert.h>
#include "packet-isi.h"
#include "isi-selftest.h"
@@ -244,13 +245,13 @@ static value_string isi_selftest_id[] = {
static dissector_handle_t isi_selftest_handle;
static void dissect_isi_selftest(tvbuff_t *tvb, packet_info *pinfo, proto_item *tree);
-static guint32 hf_isi_selftest_cmd = -1;
-static guint32 hf_isi_selftest_subblock_type = -1;
-static guint32 hf_isi_selftest_subblock_count = -1;
-static guint32 hf_isi_selftest_action = -1;
-static guint32 hf_isi_selftest_type = -1;
-static guint32 hf_isi_selftest_status = -1;
-static guint32 hf_isi_selftest_id = -1;
+static gint32 hf_isi_selftest_cmd = -1;
+static gint32 hf_isi_selftest_subblock_type = -1;
+static gint32 hf_isi_selftest_subblock_count = -1;
+static gint32 hf_isi_selftest_action = -1;
+static gint32 hf_isi_selftest_type = -1;
+static gint32 hf_isi_selftest_status = -1;
+static gint32 hf_isi_selftest_id = -1;
void proto_reg_handoff_isi_selftest(void) {
@@ -308,7 +309,7 @@ static void dissect_isi_selftest_subblock(guint8 sptype, tvbuff_t *tvb, packet_i
static void dissect_isi_selftest(tvbuff_t *tvb, packet_info *pinfo, proto_item *isitree) {
proto_item *item = NULL;
proto_tree *tree = NULL;
- guint8 cmd, code;
+ guint8 cmd;
if(isitree) {
item = proto_tree_add_text(isitree, tvb, 0, -1, "Payload");