mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2024-12-05 00:55:43 +01:00
Records: In iterator_next, use memcpy to next contact
This commit is contained in:
parent
0f2307e668
commit
f0762bf1dd
@ -111,14 +111,7 @@ record_t* ens_records_iterator_next(record_iterator_t* iter) {
|
||||
|
||||
if (!res) {
|
||||
next = &iter->current;
|
||||
memcpy(&next->associated_encrypted_metadata, &contact.associated_encrypted_metadata,
|
||||
sizeof(associated_encrypted_metadata_t));
|
||||
memcpy(&next->rolling_proximity_identifier, &contact.rolling_proximity_identifier,
|
||||
sizeof(rolling_proximity_identifier_t));
|
||||
memcpy(&next->rssi, &contact.rssi, sizeof(rssi_t));
|
||||
memcpy(&next->sn, &iter->sn_next, sizeof(record_sequence_number_t));
|
||||
|
||||
// TODO lome: timestamp?
|
||||
memcpy(next, &contact, sizeof(record_t));
|
||||
}
|
||||
|
||||
if (sn_equal(iter->sn_next, iter->sn_end)) {
|
||||
|
Loading…
Reference in New Issue
Block a user