From: phk Date: Sun, 24 Jun 2007 10:17:03 +0000 (+0000) Subject: Explicitly cat to int: we mean it. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2656e8e78d9e333ad1a7b6a982419629a98a82f;p=varnish Explicitly cat to int: we mean it. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1544 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_event.c b/varnish-cache/bin/varnishd/mgt_event.c index 4ef3b3b1..12a65fd9 100644 --- a/varnish-cache/bin/varnishd/mgt_event.c +++ b/varnish-cache/bin/varnishd/mgt_event.c @@ -433,7 +433,7 @@ ev_schedule_one(struct evbase *evb) t = ev_now(); if (e->__when <= t) return (ev_sched_timeout(evb, e, t)); - tmo = (e->__when - t) * 1e3; + tmo = (int)((e->__when - t) * 1e3); if (tmo == 0) tmo = 1; } else