tStyle fix - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit aaffdbe1c2b529827994aa269ba555fe8a4137a5
 (DIR) parent 2e31429e333c10d4d6a94b57d4d6c8d46ccf7a2d
 (HTM) Author: sin <sin@2f30.org>
       Date:   Wed,  8 Oct 2014 21:00:29 +0100
       
       Style fix
       
       Similar style as for detecting broken file transfers.
       
       Diffstat:
         M ratox.c                             |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -1764,9 +1764,10 @@ loop(void)
                                                toxav_answer(toxav, f->av.num, &toxavconfig);
                                                break;
                                        case av_CallActive:
       -                                        if ((fd = openat(f->dirfd, ffiles[FCALL_OUT].name, ffiles[FCALL_OUT].flags)) == -1 &&
       -                                            errno == ENXIO) {
       -                                                toxav_hangup(toxav, f->av.num);
       +                                        fd = openat(f->dirfd, ffiles[FCALL_OUT].name, ffiles[FCALL_OUT].flags);
       +                                        if (fd < 0) {
       +                                                if (errno == ENXIO)
       +                                                        toxav_hangup(toxav, f->av.num);
                                                } else {
                                                        close(fd);
                                                }