summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-07 00:37:38 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-07 00:37:38 +0200
commitaedd7e30cbadaed7f44af90174094ff868930cf3 (patch)
tree97c66b04f38e4d45122ee86c6e339628fcb5921b
parent18554498c28c46bdcb665c460f2bf08f30d121ab (diff)
Silence warning on older compilers
-rw-r--r--ot_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_http.c b/ot_http.c
index 3f2fc5d..cc4a616 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -368,7 +368,7 @@ static ssize_t http_handle_scrape( const int64 sock, struct ot_workstruct *ws, c
368 numwant = OT_MAXMULTISCRAPE_COUNT; 368 numwant = OT_MAXMULTISCRAPE_COUNT;
369 369
370 /* Enough for http header + whole scrape string */ 370 /* Enough for http header + whole scrape string */
371 ws->reply_size = return_tcp_scrape_for_torrent( multiscrape_buf, numwant, ws->reply ); 371 ws->reply_size = return_tcp_scrape_for_torrent( (const ot_hash*)multiscrape_buf, numwant, ws->reply );
372 stats_issue_event( EVENT_SCRAPE, FLAG_TCP, ws->reply_size ); 372 stats_issue_event( EVENT_SCRAPE, FLAG_TCP, ws->reply_size );
373 return ws->reply_size; 373 return ws->reply_size;
374} 374}