diff options
author | Sebastian Reichel <sre@ring0.de> | 2011-05-29 16:17:57 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2011-05-29 16:17:57 +0200 |
commit | 2231eebf889d7c4192efcd121f25363b563a7993 (patch) | |
tree | 9e91b0758b51ddb3f8bf8347d69ccd09d07d8414 /src/isi-call.c | |
parent | 7abe742e442f6a90be72c98c5b7b55d426e0fe7b (diff) | |
download | isi-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-call.c')
-rw-r--r-- | src/isi-call.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/isi-call.c b/src/isi-call.c index 45329b4..ae708dd 100644 --- a/src/isi-call.c +++ b/src/isi-call.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-call.h" @@ -273,12 +274,12 @@ static const value_string isi_call_cause[] = { static dissector_handle_t isi_call_handle; static void dissect_isi_call(tvbuff_t *tvb, packet_info *pinfo, proto_item *tree); -static guint32 hf_isi_call_cmd = -1; -static guint32 hf_isi_call_subblock_type = -1; -static guint32 hf_isi_call_id = -1; -static guint32 hf_isi_call_status_mode = -1; -static guint32 hf_isi_call_cause_type = -1; -static guint32 hf_isi_call_cause = -1; +static gint32 hf_isi_call_cmd = -1; +static gint32 hf_isi_call_subblock_type = -1; +static gint32 hf_isi_call_id = -1; +static gint32 hf_isi_call_status_mode = -1; +static gint32 hf_isi_call_cause_type = -1; +static gint32 hf_isi_call_cause = -1; void proto_reg_handoff_isi_call(void) { @@ -417,7 +418,7 @@ static void dissect_isi_call_subblock(guint8 sptype, tvbuff_t *tvb, packet_info static void dissect_isi_call(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"); |