aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2016-02-27 09:00:02 +0100
committerLuca Deri <deri@ntop.org>2016-02-27 09:00:02 +0100
commit20374b542d9830564cc9f50aabbf47656a9db4b0 (patch)
treebed86b1699ddc8e28b0c33cf0c5695b5f5d392ca /src/lib/protocols
parent6df31099c21198643336cc3a064df33cb559c547 (diff)
Fixed warning
Reworked protocol initialization
Diffstat (limited to 'src/lib/protocols')
-rw-r--r--src/lib/protocols/bittorrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/bittorrent.c b/src/lib/protocols/bittorrent.c
index 13dbb1418..cc1e365fe 100644
--- a/src/lib/protocols/bittorrent.c
+++ b/src/lib/protocols/bittorrent.c
@@ -46,7 +46,7 @@ static void ndpi_add_connection_as_bittorrent(struct ndpi_detection_module_struc
if(bt_magic)
bt_hash = &bt_magic[19], peer_id = &bt_magic[39];
} else
- bt_hash = &flow->packet.payload[28], peer_id = &flow->packet.payload[48];
+ bt_hash = (const char*)&flow->packet.payload[28], peer_id = (const char*)&flow->packet.payload[48];
if(bt_hash) memcpy(flow->bittorent_hash, bt_hash, 20);
}