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-commgr.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-commgr.c')
-rw-r--r-- | src/isi-commgr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/isi-commgr.c b/src/isi-commgr.c index 0f7da89..dd3d26a 100644 --- a/src/isi-commgr.c +++ b/src/isi-commgr.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-commgr.h" @@ -39,8 +40,8 @@ static const value_string isi_commgr_id[] = { static dissector_handle_t isi_commgr_handle; static void dissect_isi_commgr(tvbuff_t *tvb, packet_info *pinfo, proto_item *tree); -static guint32 hf_isi_commgr_cmd = -1; -static guint32 hf_isi_commgr_resource_count = -1; +static gint32 hf_isi_commgr_cmd = -1; +static gint32 hf_isi_commgr_resource_count = -1; void proto_reg_handoff_isi_commgr(void) { @@ -77,7 +78,7 @@ static void _show_resources(tvbuff_t *tvb, proto_tree *tree) { static void dissect_isi_commgr(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"); |