summaryrefslogtreecommitdiffstats
path: root/src/isi-pipe.c
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2011-05-29 16:17:57 +0200
committerSebastian Reichel <sre@ring0.de>2011-05-29 16:17:57 +0200
commit2231eebf889d7c4192efcd121f25363b563a7993 (patch)
tree9e91b0758b51ddb3f8bf8347d69ccd09d07d8414 /src/isi-pipe.c
parent7abe742e442f6a90be72c98c5b7b55d426e0fe7b (diff)
downloadisi-wireshark-plugin-2231eebf889d7c4192efcd121f25363b563a7993.tar.bz2
fix warnings
* fix signess (guint32 -> gint32) * remove some unused variables * add <epan/expert.h> as needed * include handler.h in isi-packet.c
Diffstat (limited to 'src/isi-pipe.c')
-rw-r--r--src/isi-pipe.c39
1 files changed, 20 insertions, 19 deletions
diff --git a/src/isi-pipe.c b/src/isi-pipe.c
index 7845e5e..b0171fc 100644
--- a/src/isi-pipe.c
+++ b/src/isi-pipe.c
@@ -24,6 +24,7 @@
#include <glib.h>
#include <epan/prefs.h>
#include <epan/packet.h>
+#include <epan/expert.h>
#include "packet-isi.h"
#include "isi-pipe.h"
@@ -137,24 +138,24 @@ static const value_string isi_pipe_error[] = {
static dissector_handle_t isi_pipe_handle;
static void dissect_isi_pipe(tvbuff_t *tvb, packet_info *pinfo, proto_item *tree);
-static guint32 hf_isi_pipe_cmd = -1;
-static guint32 hf_isi_pipe_subblock_type = -1;
-static guint32 hf_isi_pipe_pipe_state_after = -1;
-static guint32 hf_isi_pipe_pep_state_after = -1;
-static guint32 hf_isi_pipe_priority = -1;
-static guint32 hf_isi_pipe_first_pep_dev = -1;
-static guint32 hf_isi_pipe_first_pep_obj = -1;
-static guint32 hf_isi_pipe_first_pep_type = -1;
-static guint32 hf_isi_pipe_second_pep_dev = -1;
-static guint32 hf_isi_pipe_second_pep_obj = -1;
-static guint32 hf_isi_pipe_second_pep_type = -1;
-static guint32 hf_isi_pipe_handle = -1;
-static guint32 hf_isi_pipe_error = -1;
-static guint32 hf_isi_pipe_pep1_error = -1;
-static guint32 hf_isi_pipe_pep2_error = -1;
-static guint32 hf_isi_pipe_other_pep_type = -1;
-static guint32 hf_isi_pipe_pep_type = -1;
-static guint32 hf_isi_pipe_indication_id = -1;
+static gint32 hf_isi_pipe_cmd = -1;
+static gint32 hf_isi_pipe_subblock_type = -1;
+static gint32 hf_isi_pipe_pipe_state_after = -1;
+static gint32 hf_isi_pipe_pep_state_after = -1;
+static gint32 hf_isi_pipe_priority = -1;
+static gint32 hf_isi_pipe_first_pep_dev = -1;
+static gint32 hf_isi_pipe_first_pep_obj = -1;
+static gint32 hf_isi_pipe_first_pep_type = -1;
+static gint32 hf_isi_pipe_second_pep_dev = -1;
+static gint32 hf_isi_pipe_second_pep_obj = -1;
+static gint32 hf_isi_pipe_second_pep_type = -1;
+static gint32 hf_isi_pipe_handle = -1;
+static gint32 hf_isi_pipe_error = -1;
+static gint32 hf_isi_pipe_pep1_error = -1;
+static gint32 hf_isi_pipe_pep2_error = -1;
+static gint32 hf_isi_pipe_other_pep_type = -1;
+static gint32 hf_isi_pipe_pep_type = -1;
+static gint32 hf_isi_pipe_indication_id = -1;
void proto_reg_handoff_isi_pipe(void) {
static gboolean initialized=FALSE;
@@ -227,7 +228,7 @@ static void dissect_isi_pipe_subblock(guint8 sptype, tvbuff_t *tvb, packet_info
static void dissect_isi_pipe(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");