ratox

FIFO based tox client
Log | Files | Refs | README | LICENSE

commit 08a57c7b4710fb5c67add655de78020c16cf2e0e
parent 1cc1eccc7c87dd68760fec4634065007f92c4259
Author: z3bra <contactatz3bradotorg>
Date:   Fri Nov 18 00:18:34 +0100

Update style for if() conditions

Diffstat:
ratox.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ratox.c b/ratox.c @@ -972,7 +972,7 @@ reprompt1: if (tox_is_data_encrypted(intermediate)) { toxopt->savedata_length = sz-TOX_PASS_ENCRYPTION_EXTRA_LENGTH; data = malloc(toxopt->savedata_length); - if(!data) + if (!data) eprintf("malloc:"); if (!encryptsavefile) logmsg("Data : %s > Encrypted, but saving unencrypted\n", savefile); @@ -981,7 +981,7 @@ reprompt1: } else { toxopt->savedata_length = sz; data = malloc(sz); - if(!data) + if (!data) eprintf("malloc:"); memcpy(data, intermediate, sz); if (encryptsavefile) { @@ -1171,7 +1171,7 @@ toxinit(void) toxav_callback_audio_receive_frame(toxav, cbcalldata, NULL); - if(toxopt.savedata_data) + if (toxopt.savedata_data) free((void *)toxopt.savedata_data); return 0; @@ -1259,7 +1259,7 @@ friendcreate(uint32_t frnum) } f->num = frnum; - if(!tox_friend_get_public_key(tox, f->num, f->id, NULL)) { + if (!tox_friend_get_public_key(tox, f->num, f->id, NULL)) { weprintf(": %s: Key : Failed to get\n", f->name); return NULL; }