diff options
Diffstat (limited to 'proxy.c')
| -rw-r--r-- | proxy.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -18,7 +18,6 @@ | |||
| 18 | #include <unistd.h> | 18 | #include <unistd.h> |
| 19 | 19 | ||
| 20 | /* Libowfat */ | 20 | /* Libowfat */ |
| 21 | #include "byte.h" | ||
| 22 | #include "io.h" | 21 | #include "io.h" |
| 23 | #include "iob.h" | 22 | #include "iob.h" |
| 24 | #include "ip6.h" | 23 | #include "ip6.h" |
| @@ -142,8 +141,8 @@ size_t add_peer_to_torrent_proxy(ot_hash hash, ot_peer *peer, size_t peer_size) | |||
| 142 | return -1; | 141 | return -1; |
| 143 | } | 142 | } |
| 144 | 143 | ||
| 145 | byte_zero(torrent->peer_list6, sizeof(ot_peerlist)); | 144 | memset(torrent->peer_list6, 0, sizeof(ot_peerlist)); |
| 146 | byte_zero(torrent->peer_list4, sizeof(ot_peerlist)); | 145 | memset(torrent->peer_list4, 0, sizeof(ot_peerlist)); |
| 147 | } | 146 | } |
| 148 | 147 | ||
| 149 | peer_list = peer_size == OT_PEER_SIZE6 ? torrent->peer_list6 : torrent->peer_list4; | 148 | peer_list = peer_size == OT_PEER_SIZE6 ? torrent->peer_list6 : torrent->peer_list4; |
