[master] 88f8a36 Add missing paranthesis, needed on platforms without nanosleep

Tollef Fog Heen tfheen at varnish-cache.org
Fri May 13 10:25:17 CEST 2011


commit 88f8a36b961b5fd254bbda6cd1577737e792ff1e
Author: Thomas Woinke <thomas.woinke at gmail.com>
Date:   Fri May 13 10:24:51 2011 +0200

    Add missing paranthesis, needed on platforms without nanosleep

diff --git a/lib/libvarnish/time.c b/lib/libvarnish/time.c
index 4c7abe7..8e79a1c 100644
--- a/lib/libvarnish/time.c
+++ b/lib/libvarnish/time.c
@@ -166,7 +166,7 @@ TIM_sleep(double t)
 	(void)nanosleep(&ts, NULL);
 #else
 	if (t >= 1.) {
-		(void)sleep(floor(t);
+		(void)sleep(floor(t));
 		t -= floor(t);
 	}
 	/* XXX: usleep() is not mandated to be thread safe */



More information about the varnish-commit mailing list