-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure save data unchanged after save and load #1215
Conversation
b714ef0
to
0c514ca
Compare
Codecov Report
@@ Coverage Diff @@
## master #1215 +/- ##
========================================
+ Coverage 82.9% 83% +0.1%
========================================
Files 82 82
Lines 14647 14692 +45
========================================
+ Hits 12146 12200 +54
+ Misses 2501 2492 -9
Continue to review full report at Codecov.
|
d7dd0cf
to
ba976bb
Compare
auto_tests/save_load_test.c
Outdated
tox_get_savedata(*tox, buffer + extra); | ||
tox_kill(*tox); | ||
|
||
for (size_t i = 0; i < extra; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++i
toxcore/TCP_client.c
Outdated
@@ -419,17 +419,6 @@ static bool client_add_priority(TCP_Client_Connection *con, const uint8_t *packe | |||
return 1; | |||
} | |||
|
|||
static void wipe_priority_list(TCP_Client_Connection *con) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs rebase on master?
* Sunday, 2018-10-07 at 15:56 -0700 - iphydf <[email protected]>:
There is a lot of newlines here. Was that intentional?
It's what astyle demands, presumably due to a bug in astyle.
|
toxcore/DHT.c
Outdated
@@ -2803,6 +2803,11 @@ uint32_t dht_size(const DHT *dht) | |||
uint32_t numv4 = 0; | |||
uint32_t numv6 = 0; | |||
|
|||
for (uint32_t i = 0; i < dht->loaded_num_nodes; ++i) { | |||
numv4 += (net_family_is_ipv4(dht->loaded_nodes_list[i].ip_port.ip.family)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra () around function call.
This change is