diff options
Diffstat (limited to 'ot_fullscrape.c')
| -rw-r--r-- | ot_fullscrape.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ot_fullscrape.c b/ot_fullscrape.c index 08970a6..3d0e2f1 100644 --- a/ot_fullscrape.c +++ b/ot_fullscrape.c | |||
| @@ -17,16 +17,15 @@ | |||
| 17 | #include <zstd.h> | 17 | #include <zstd.h> |
| 18 | #endif | 18 | #endif |
| 19 | 19 | ||
| 20 | |||
| 21 | /* Libowfat */ | 20 | /* Libowfat */ |
| 22 | #include "io.h" | 21 | #include "io.h" |
| 23 | #include "textcode.h" | ||
| 24 | 22 | ||
| 25 | /* Opentracker */ | 23 | /* Opentracker */ |
| 26 | #include "ot_hex.h" | 24 | #include "ot_hex.h" |
| 27 | #include "ot_fullscrape.h" | 25 | #include "ot_fullscrape.h" |
| 28 | #include "ot_iovec.h" | 26 | #include "ot_iovec.h" |
| 29 | #include "ot_mutex.h" | 27 | #include "ot_mutex.h" |
| 28 | #include "scan_urlencoded_query.h" | ||
| 30 | #include "trackerlogic.h" | 29 | #include "trackerlogic.h" |
| 31 | 30 | ||
| 32 | /* Fetch full scrape info for all torrents | 31 | /* Fetch full scrape info for all torrents |
| @@ -123,7 +122,7 @@ static char * fullscrape_write_one( ot_tasktype mode, char *r, ot_torrent *torre | |||
| 123 | r += 8; | 122 | r += 8; |
| 124 | break; | 123 | break; |
| 125 | case TASK_FULLSCRAPE_TPB_URLENCODED: | 124 | case TASK_FULLSCRAPE_TPB_URLENCODED: |
| 126 | r += fmt_urlencoded(r, (char *)*hash, 20); | 125 | r += fmt_urlencoded(r, *hash, sizeof(ot_hash)); |
| 127 | r += sprintf(r, ":%zd:%zd\n", seed_count, peer_count - seed_count); | 126 | r += sprintf(r, ":%zd:%zd\n", seed_count, peer_count - seed_count); |
| 128 | break; | 127 | break; |
| 129 | case TASK_FULLSCRAPE_TRACKERSTATE: | 128 | case TASK_FULLSCRAPE_TRACKERSTATE: |
