summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-14 13:14:00 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-14 13:14:00 +0200
commitcab821f253976a21a1ad5fcf05d9d5fe3b3100c1 (patch)
tree8d1e6aa886bf6530da3813f41242c752412fd4a5
parent236c9292f62135e33f9205c800f686b16f94f804 (diff)
Silence warning in debug code
-rw-r--r--trackerlogic.c2
1 files changed, 1 insertions, 1 deletions
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) {
525 ws.inbuf=malloc(G_INBUF_SIZE); 525 ws.inbuf=malloc(G_INBUF_SIZE);
526 ws.outbuf=malloc(G_OUTBUF_SIZE); 526 ws.outbuf=malloc(G_OUTBUF_SIZE);
527 ws.reply=ws.outbuf; 527 ws.reply=ws.outbuf;
528 ws.hash=ws.inbuf; 528 ws.hash=(ot_hash*)ws.inbuf;
529 529
530 while( amount-- ) { 530 while( amount-- ) {
531 arc4random_buf(ws.hash, sizeof(ot_hash)); 531 arc4random_buf(ws.hash, sizeof(ot_hash));