summaryrefslogtreecommitdiff
path: root/toxcore/friend_connection.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-10 13:39:07 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-10 18:57:37 +0000
commit54ec162558f203242639b382eea6e0085300249c (patch)
tree5321d67bbc143ea3caa4e9e9048ffc71e40b0c14 /toxcore/friend_connection.c
parenta3079e82ddda90055d7247f000a8e9afa7f8a5c5 (diff)
Fix formatting in some C files.
Also replace &(x) with &x for consistency.
Diffstat (limited to 'toxcore/friend_connection.c')
-rw-r--r--toxcore/friend_connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/friend_connection.c b/toxcore/friend_connection.c
index 9f0677b1..6998fab7 100644
--- a/toxcore/friend_connection.c
+++ b/toxcore/friend_connection.c
@@ -95,7 +95,7 @@ static int create_friend_conn(Friend_Connections *fr_c)
95 if (realloc_friendconns(fr_c, fr_c->num_cons + 1) == 0) { 95 if (realloc_friendconns(fr_c, fr_c->num_cons + 1) == 0) {
96 id = fr_c->num_cons; 96 id = fr_c->num_cons;
97 ++fr_c->num_cons; 97 ++fr_c->num_cons;
98 memset(&(fr_c->conns[id]), 0, sizeof(Friend_Conn)); 98 memset(&fr_c->conns[id], 0, sizeof(Friend_Conn));
99 } 99 }
100 100
101 return id; 101 return id;
@@ -113,7 +113,7 @@ static int wipe_friend_conn(Friend_Connections *fr_c, int friendcon_id)
113 } 113 }
114 114
115 uint32_t i; 115 uint32_t i;
116 memset(&(fr_c->conns[friendcon_id]), 0 , sizeof(Friend_Conn)); 116 memset(&fr_c->conns[friendcon_id], 0, sizeof(Friend_Conn));
117 117
118 for (i = fr_c->num_cons; i != 0; --i) { 118 for (i = fr_c->num_cons; i != 0; --i) {
119 if (fr_c->conns[i - 1].status != FRIENDCONN_STATUS_NONE) { 119 if (fr_c->conns[i - 1].status != FRIENDCONN_STATUS_NONE) {