From 770b156ad12cf75c816cdbe7f935493b812d6b5c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 29 Dec 2009 11:02:26 +0100 Subject: [PATCH] Comment on conversion --- src/eventl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4