diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-10 13:39:07 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-10 18:57:37 +0000 |
commit | 54ec162558f203242639b382eea6e0085300249c (patch) | |
tree | 5321d67bbc143ea3caa4e9e9048ffc71e40b0c14 /toxcore/onion_client.c | |
parent | a3079e82ddda90055d7247f000a8e9afa7f8a5c5 (diff) |
Fix formatting in some C files.
Also replace &(x) with &x for consistency.
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r-- | toxcore/onion_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index 94e9c916..0d1191a6 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c | |||
@@ -1179,7 +1179,7 @@ int onion_addfriend(Onion_Client *onion_c, const uint8_t *public_key) | |||
1179 | } | 1179 | } |
1180 | 1180 | ||
1181 | index = onion_c->num_friends; | 1181 | index = onion_c->num_friends; |
1182 | memset(&(onion_c->friends_list[onion_c->num_friends]), 0, sizeof(Onion_Friend)); | 1182 | memset(&onion_c->friends_list[onion_c->num_friends], 0, sizeof(Onion_Friend)); |
1183 | ++onion_c->num_friends; | 1183 | ++onion_c->num_friends; |
1184 | } | 1184 | } |
1185 | 1185 | ||
@@ -1203,7 +1203,7 @@ int onion_delfriend(Onion_Client *onion_c, int friend_num) | |||
1203 | //if (onion_c->friends_list[friend_num].know_dht_public_key) | 1203 | //if (onion_c->friends_list[friend_num].know_dht_public_key) |
1204 | // DHT_delfriend(onion_c->dht, onion_c->friends_list[friend_num].dht_public_key, 0); | 1204 | // DHT_delfriend(onion_c->dht, onion_c->friends_list[friend_num].dht_public_key, 0); |
1205 | 1205 | ||
1206 | crypto_memzero(&(onion_c->friends_list[friend_num]), sizeof(Onion_Friend)); | 1206 | crypto_memzero(&onion_c->friends_list[friend_num], sizeof(Onion_Friend)); |
1207 | unsigned int i; | 1207 | unsigned int i; |
1208 | 1208 | ||
1209 | for (i = onion_c->num_friends; i != 0; --i) { | 1209 | for (i = onion_c->num_friends; i != 0; --i) { |