r1544 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Jun 24 12:17:04 CEST 2007


Author: phk
Date: 2007-06-24 12:17:03 +0200 (Sun, 24 Jun 2007)
New Revision: 1544

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_event.c
Log:
Explicitly cat to int: we mean it.


Modified: trunk/varnish-cache/bin/varnishd/mgt_event.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_event.c	2007-06-24 10:16:41 UTC (rev 1543)
+++ trunk/varnish-cache/bin/varnishd/mgt_event.c	2007-06-24 10:17:03 UTC (rev 1544)
@@ -433,7 +433,7 @@
 		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




More information about the varnish-commit mailing list