diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-04-27 17:22:20 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-04-27 17:22:20 +0000 |
commit | 5c778feb6b95df60d3df8bd6ee919ba12e498bc8 (patch) | |
tree | 9dd653b782c5b4d2c70cf4aac7aa28699c132be2 /epan/dissectors/packet-bittorrent.c | |
parent | e777d9e375f17be2c482dcade721670903a7c696 (diff) |
From Yaniv Kaul:
Some fixes for 'set but not used' errors that GCC 4.6 emits.
From me:
#include <string.h> not req'd.
svn path=/trunk/; revision=36907
Diffstat (limited to 'epan/dissectors/packet-bittorrent.c')
-rw-r--r-- | epan/dissectors/packet-bittorrent.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bittorrent.c b/epan/dissectors/packet-bittorrent.c index b7dea6383c..8a16c8150d 100644 --- a/epan/dissectors/packet-bittorrent.c +++ b/epan/dissectors/packet-bittorrent.c @@ -29,7 +29,6 @@ # include "config.h" #endif -#include <string.h> #include <glib.h> #include <epan/prefs.h> #include <epan/conversation.h> @@ -576,7 +575,6 @@ static void dissect_bittorrent_message (tvbuff_t *tvb, packet_info *pinfo, proto { int offset = 0; int i; - int doffset = BITTORRENT_HEADER_LENGTH; int isamp = 0; proto_tree *mtree; guint16 type = 0; @@ -615,7 +613,6 @@ static void dissect_bittorrent_message (tvbuff_t *tvb, packet_info *pinfo, proto prio = tvb_get_guint8(tvb, offset + BITTORRENT_HEADER_LENGTH + 4 + typelen); if (prio==0 || prio==1 || prio==2) { type = amp_messages[i].value; - doffset = BITTORRENT_HEADER_LENGTH + 4 + typelen + 1; isamp = 1; } break; |