diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-28 07:06:39 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2007-03-28 07:06:39 +0000 |
commit | 85a464c98012ebad9a612dbd76b4662442f1821b (patch) | |
tree | 54f5b092d39996c74a7ddc7acb7feb6ae3834454 /epan/dissectors/packet-bittorrent.c | |
parent | 4b0b2c289446f1073dfc7fbac39a08e3942e3b02 (diff) | |
download | wireshark-85a464c98012ebad9a612dbd76b4662442f1821b.tar.gz wireshark-85a464c98012ebad9a612dbd76b4662442f1821b.tar.bz2 wireshark-85a464c98012ebad9a612dbd76b4662442f1821b.zip |
Fix a bunch of warnings, add svn:keywords Id and svn:eol-style native
to packet-iuup.c.
svn path=/trunk/; revision=21244
Diffstat (limited to 'epan/dissectors/packet-bittorrent.c')
-rw-r--r-- | epan/dissectors/packet-bittorrent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bittorrent.c b/epan/dissectors/packet-bittorrent.c index a299a0792f..f4d67158e9 100644 --- a/epan/dissectors/packet-bittorrent.c +++ b/epan/dissectors/packet-bittorrent.c @@ -710,8 +710,8 @@ static void dissect_bittorrent_welcome (tvbuff_t *tvb, packet_info *pinfo _U_, p /* The version number is 4 numeric characters for the client ids beginning with '-' and 3 characters for the rest. */ - version = tvb_get_string(tvb, offset + strlen(peer_id[i].id), - (guint8*)(peer_id[i].id[0] == '-') ? 4 : 3); + version = (char*)tvb_get_string(tvb, offset + strlen(peer_id[i].id), + (peer_id[i].id[0] == '-') ? 4 : 3); proto_tree_add_text(tree, tvb, offset, 20, "Client is %s v%s", peer_id[i].name, format_text((guchar*)version, (peer_id[i].id[0] == '-') ? 4 : 3)); |