From: Adam Dickmeiss Date: Tue, 29 Dec 2009 10:02:26 +0000 (+0100) Subject: Comment on conversion X-Git-Tag: v4.0.0~59 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=770b156ad12cf75c816cdbe7f935493b812d6b5c;p=yaz-moved-to-github.git Comment on conversion --- diff --git a/src/eventl.c b/src/eventl.c index e8f6324..a34e76a 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -117,8 +117,9 @@ int iochan_event_loop(IOCHAN *iochans) w = p->max_idle; else w = ftime - now; + /* tv_sec will be minimum wait.. */ if (w < tv_sec) - tv_sec = w; + tv_sec = (int) w; /* can hold it because w < tv_sec */ } fds[i].fd = p->fd; fds[i].input_mask = input_mask;