summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-09-21 10:07:16 +0200
committerCoren[m] <Break@Ocean>2013-09-21 10:07:16 +0200
commitf56a8529a3235029333e2da49d28d0ef5899819e (patch)
treed188b93c0c88782034ef5cec31563d693e55950d /toxcore/Messenger.c
parent20b6900fb181f71eca4577a5f1e1f5f3ecd6a28b (diff)
Thou shalt not take singular commands after an if into #ifdef DEBUG...
toxcore/Messenger.c: - Messenger_load_old(): brackets around an #ifdef'ed line to avoid data pointer being only pushed forward properly in the error case
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index dbbfa58c..e468a60a 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1425,12 +1425,12 @@ static int Messenger_load_old(Messenger *m, uint8_t *data, uint32_t length)
1425 if (length < size) 1425 if (length < size)
1426 return -1; 1426 return -1;
1427 1427
1428 if (DHT_load_old(m->dht, data, size) == -1) 1428 if (DHT_load_old(m->dht, data, size) == -1) {
1429#ifdef DEBUG 1429#ifdef DEBUG
1430 fprintf(stderr, "Data file: Something wicked happened to the stored connections...\n"); 1430 fprintf(stderr, "Data file: Something wicked happened to the stored connections...\n");
1431 1431 /* DO go on, friends/name still might be intact */
1432#endif 1432#endif
1433 /* DO go on, friends/name still might be intact */ 1433 }
1434 1434
1435 data += size; 1435 data += size;
1436 length -= size; 1436 length -= size;