]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Silence warning on older compilers
authorDirk Engling <erdgeist@erdgeist.org>
Sat, 6 Apr 2024 22:37:38 +0000 (00:37 +0200)
committerDirk Engling <erdgeist@erdgeist.org>
Sat, 6 Apr 2024 22:37:38 +0000 (00:37 +0200)
ot_http.c

index 3f2fc5d6eef7d29fa97310c2e25720953941e84d..cc4a616b0e97c0445315679498318ba6dbdbc46c 100644 (file)
--- 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
     numwant = OT_MAXMULTISCRAPE_COUNT;
 
   /* Enough for http header + whole scrape string */
-  ws->reply_size = return_tcp_scrape_for_torrent( multiscrape_buf, numwant, ws->reply );
+  ws->reply_size = return_tcp_scrape_for_torrent( (const ot_hash*)multiscrape_buf, numwant, ws->reply );
   stats_issue_event( EVENT_SCRAPE, FLAG_TCP, ws->reply_size );
   return ws->reply_size;
 }