summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08c3c58)
raw | patch | inline | side by side (parent: 08c3c58)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Sat, 4 Apr 2015 23:44:50 +0000 (01:44 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Sat, 4 Apr 2015 23:44:50 +0000 (01:44 +0200) |
... to avoid portability problems.
src/write_http.c | patch | blob | history |
diff --git a/src/write_http.c b/src/write_http.c
index ad4dd8a4bad7e2bcf14ede0c92600d2bfcb19839..3b594be497ae371ac53e66098dfb3a6115d646dc 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
if (cb->low_speed_limit > 0 && cb->low_speed_time > 0)
{
curl_easy_setopt (cb->curl, CURLOPT_LOW_SPEED_LIMIT,
- (cb->low_speed_limit * cb->low_speed_time));
+ (long) (cb->low_speed_limit * cb->low_speed_time));
curl_easy_setopt (cb->curl, CURLOPT_LOW_SPEED_TIME,
- cb->low_speed_time);
+ (long) cb->low_speed_time);
}
if (cb->timeout > 0)
- curl_easy_setopt (cb->curl, CURLOPT_TIMEOUT_MS, cb->timeout);
+ curl_easy_setopt (cb->curl, CURLOPT_TIMEOUT_MS, (long) cb->timeout);
curl_easy_setopt (cb->curl, CURLOPT_NOSIGNAL, 1L);
curl_easy_setopt (cb->curl, CURLOPT_USERAGENT, COLLECTD_USERAGENT);