forked from osmocom/wireshark
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
This commit is contained in:
parent
e777d9e375
commit
5c778feb6b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue