From cab821f253976a21a1ad5fcf05d9d5fe3b3100c1 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 14 Apr 2024 13:14:00 +0200 Subject: Silence warning in debug code --- trackerlogic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trackerlogic.c') diff --git a/trackerlogic.c b/trackerlogic.c index e2ac5b3..f01348d 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -525,7 +525,7 @@ void trackerlogic_add_random_torrents(size_t amount) { ws.inbuf=malloc(G_INBUF_SIZE); ws.outbuf=malloc(G_OUTBUF_SIZE); ws.reply=ws.outbuf; - ws.hash=ws.inbuf; + ws.hash=(ot_hash*)ws.inbuf; while( amount-- ) { arc4random_buf(ws.hash, sizeof(ot_hash)); -- cgit v1.2.3