]> granicus.if.org Git - curl/commitdiff
time_t fix: follow-up to de4de4e3c7c
authorDaniel Stenberg <daniel@haxx.se>
Sun, 13 Nov 2016 22:09:45 +0000 (23:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 13 Nov 2016 22:09:45 +0000 (23:09 +0100)
Blah, I accidentally wrote size_t instead of time_t for two variables.

Reported-by: Dave Reisner
lib/progress.c

index adbb737ede70cc132fd9c61a72dbfa00e40e209f..60627b2af4380e4a6b5b712ebb86d43b796bc2c5 100644 (file)
@@ -250,8 +250,8 @@ long Curl_pgrsLimitWaitTime(curl_off_t cursize,
                             struct timeval now)
 {
   curl_off_t size = cursize - startsize;
-  size_t minimum;
-  size_t actual;
+  time_t minimum;
+  time_t actual;
 
   /* we don't have a starting point yet -- return 0 so it gets (re)set */
   if(start.tv_sec == 0 && start.tv_usec == 0)