From 1f2abe92475f41651bc121b9d47e57dbd3d6e90a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 16 Oct 2008 14:58:56 +0200 Subject: [PATCH] Simplify if stmt --- src/eventl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4