summaryrefslogtreecommitdiff
path: root/ot_clean.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_clean.c')
-rw-r--r--ot_clean.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_clean.c b/ot_clean.c
index 11c85ab..6ce1941 100644
--- a/ot_clean.c
+++ b/ot_clean.c
@@ -33,7 +33,7 @@ static ssize_t clean_single_bucket( ot_peer *peers, size_t peer_count, time_t ti
33 while( peers < last_peer ) 33 while( peers < last_peer )
34 if( ( timediff = timedout + OT_PEERTIME( peers ) ) < OT_PEER_TIMEOUT ) { 34 if( ( timediff = timedout + OT_PEERTIME( peers ) ) < OT_PEER_TIMEOUT ) {
35 OT_PEERTIME( peers ) = timediff; 35 OT_PEERTIME( peers ) = timediff;
36 *(uint64_t*)(insert_point++) = *(uint64_t*)(peers++); 36 memcpy( insert_point++, peers++, sizeof(ot_peer));
37 } else 37 } else
38 if( OT_PEERFLAG( peers++ ) & PEER_FLAG_SEEDING ) 38 if( OT_PEERFLAG( peers++ ) & PEER_FLAG_SEEDING )
39 (*removed_seeders)++; 39 (*removed_seeders)++;