Rémi Bernon (@rbernon) commented about server/fd.c:
static inline void main_loop_epoll(void) {
- int i, nget, ret, timeout;
BOOL infinite;
int i, nget, ret;
struct timespec ts; port_event_t events[128];
if (port_fd == -1) return;
while (active_users) {
timeout = get_next_timeout();
infinite = !get_next_timeout_ts( &ts );
You could even return a `timespec_t *`, NULL or to the provided ts parameter, and save the `if (infinite)` below.