From: Adam Dickmeiss Date: Thu, 16 Oct 2008 12:58:56 +0000 (+0200) Subject: Simplify if stmt X-Git-Tag: v1.1.0~90 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1f2abe92475f41651bc121b9d47e57dbd3d6e90a;p=pazpar2-moved-to-github.git Simplify if stmt --- diff --git a/src/eventl.c b/src/eventl.c index ad1df4b..38807ee 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -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;