summaryrefslogtreecommitdiff
path: root/lib/speedcheck.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-07-28 15:49:36 +0200
committerng0 <ng0@infotropique.org>2017-08-22 15:29:45 +0000
commit449f6d6a29420d8b0233105221dbce6f9c4f5999 (patch)
tree40f4cff81fd98411d561cf0c81d93db56c4dbcdc /lib/speedcheck.c
parent4f5c72597bd0d86d1c8164a0ec3ea73d1ec72a35 (diff)
downloadgnurl-449f6d6a29420d8b0233105221dbce6f9c4f5999.tar.gz
gnurl-449f6d6a29420d8b0233105221dbce6f9c4f5999.tar.bz2
gnurl-449f6d6a29420d8b0233105221dbce6f9c4f5999.zip
timeval: struct curltime is a struct timeval replacement
... to make all libcurl internals able to use the same data types for the struct members. The timeval struct differs subtly on several platforms so it makes it cumbersome to use everywhere. Ref: #1652 Closes #1693
Diffstat (limited to 'lib/speedcheck.c')
-rw-r--r--lib/speedcheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/speedcheck.c b/lib/speedcheck.c
index 8addedde5..fe669f11a 100644
--- a/lib/speedcheck.c
+++ b/lib/speedcheck.c
@@ -30,14 +30,14 @@
void Curl_speedinit(struct Curl_easy *data)
{
- memset(&data->state.keeps_speed, 0, sizeof(struct timeval));
+ memset(&data->state.keeps_speed, 0, sizeof(struct curltime));
}
/*
* @unittest: 1606
*/
CURLcode Curl_speedcheck(struct Curl_easy *data,
- struct timeval now)
+ struct curltime now)
{
if((data->progress.current_speed >= 0) && data->set.low_speed_time) {
if(data->progress.current_speed < data->set.low_speed_limit) {