From 20374b542d9830564cc9f50aabbf47656a9db4b0 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sat, 27 Feb 2016 09:00:02 +0100 Subject: Fixed warning Reworked protocol initialization --- src/lib/protocols/bittorrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/protocols') 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); } -- cgit v1.2.3