diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-27 17:22:20 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-27 17:22:20 +0000 |
commit | 83d95f8e1169882461d2e01244c0c3a2570eca14 (patch) | |
tree | 9dd653b782c5b4d2c70cf4aac7aa28699c132be2 | |
parent | 8808a292fe1a620d44a9b49b90b4d56e2209ebb7 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36907 f5534014-38df-0310-8fa8-9805f1628bb7
-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; |