Simplify if stmt
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 16 Oct 2008 12:58:56 +0000 (14:58 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 16 Oct 2008 12:58:56 +0000 (14:58 +0200)
src/eventl.c

index ad1df4b..38807ee 100644 (file)
@@ -111,7 +111,8 @@ int event_loop(IOCHAN *iochans)
             if (p->max_idle && p->max_idle < to.tv_sec)
                 to.tv_sec = p->max_idle;
        }
-       if ((res = select(max + 1, &in, &out, &except, timeout)) < 0)
+        res = select(max + 1, &in, &out, &except, timeout);        
+        if (res < 0)
        {
            if (errno == EINTR)
                continue;