From 66ecf4a473c625c89d1f39cb65f93aa04c5ef0e3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 Jul 2017 08:44:36 +0200 Subject: tool_sleep: fix the multiplier too, to not be a long --- src/tool_sleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool_sleep.c b/src/tool_sleep.c index 7f3689b23..a63d85ffb 100644 --- a/src/tool_sleep.c +++ b/src/tool_sleep.c @@ -51,7 +51,7 @@ void tool_go_sleep(long ms) struct timeval timeout; timeout.tv_sec = ms / 1000L; ms = ms % 1000L; - timeout.tv_usec = (int)ms * 1000L; + timeout.tv_usec = (int)ms * 1000; select(0, NULL, NULL, NULL, &timeout); #endif } -- cgit v1.2.1