URI: 
       tUpdate style for if() conditions - ratox - FIFO based tox client
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 08a57c7b4710fb5c67add655de78020c16cf2e0e
   DIR parent 1cc1eccc7c87dd68760fec4634065007f92c4259
  HTML Author: z3bra <contactatz3bradotorg>
       Date:   Fri, 18 Nov 2016 00:18:34 +0100
       
       Update style for if() conditions
       
       Diffstat:
         M ratox.c                             |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/ratox.c b/ratox.c
       t@@ -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);
       t@@ -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) {
       t@@ -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;
       t@@ -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;
                }