diff options
Diffstat (limited to 'ot_stats.c')
| -rw-r--r-- | ot_stats.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -19,7 +19,6 @@ | |||
| 19 | #endif | 19 | #endif |
| 20 | 20 | ||
| 21 | /* Libowfat */ | 21 | /* Libowfat */ |
| 22 | #include "byte.h" | ||
| 23 | #include "io.h" | 22 | #include "io.h" |
| 24 | #include "ip4.h" | 23 | #include "ip4.h" |
| 25 | #include "ip6.h" | 24 | #include "ip6.h" |
| @@ -339,9 +338,9 @@ size_t stats_top_txt(char *reply, size_t amount) { | |||
| 339 | if (amount > 100) | 338 | if (amount > 100) |
| 340 | amount = 100; | 339 | amount = 100; |
| 341 | 340 | ||
| 342 | byte_zero(top100s, sizeof(top100s)); | 341 | memset(top100s, 0, sizeof(top100s)); |
| 343 | byte_zero(top100c, sizeof(top100c)); | 342 | memset(top100c, 0, sizeof(top100c)); |
| 344 | byte_zero(top100l, sizeof(top100l)); | 343 | memset(top100l, 0, sizeof(top100l)); |
| 345 | 344 | ||
| 346 | /* Iterate over complete torrent list */ | 345 | /* Iterate over complete torrent list */ |
| 347 | for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) { | 346 | for (bucket = 0; bucket < OT_BUCKET_COUNT; ++bucket) { |
