diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2024-04-07 00:37:38 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2024-04-07 00:37:38 +0200 |
commit | aedd7e30cbadaed7f44af90174094ff868930cf3 (patch) | |
tree | 97c66b04f38e4d45122ee86c6e339628fcb5921b | |
parent | 18554498c28c46bdcb665c460f2bf08f30d121ab (diff) |
Silence warning on older compilers
-rw-r--r-- | ot_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | } |