aboutsummaryrefslogtreecommitdiff
path: root/src/tool_cb_prg.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-07-31 15:36:56 +0200
committerYang Tse <yangsita@gmail.com>2013-07-31 15:36:56 +0200
commit14a3139c4d3ef2787b2cf74632b66296d2b93b95 (patch)
treeb784b4e29e17b9d963dd2340d7f0ac157a9c66e4 /src/tool_cb_prg.c
parent5af2bfb9557e36a5e9ad181f7b5edc3d1875e8bc (diff)
curl: follow-up for commit 5af2bfb9
Use tvnow() and tvdiff() to avoid introducing new linkage issues
Diffstat (limited to 'src/tool_cb_prg.c')
-rw-r--r--src/tool_cb_prg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c
index b94442be8..cc0212648 100644
--- a/src/tool_cb_prg.c
+++ b/src/tool_cb_prg.c
@@ -27,6 +27,7 @@
#include "tool_cfgable.h"
#include "tool_cb_prg.h"
+#include "tool_util.h"
#include "memdebug.h" /* keep this as LAST include */
@@ -49,12 +50,12 @@ int tool_progress_cb(void *clientp,
double percent;
int barwidth;
int num;
- struct timeval now = curlx_tvnow();
+ struct timeval now = tvnow();
struct ProgressData *bar = (struct ProgressData *)clientp;
curl_off_t total;
curl_off_t point;
- if(curlx_tvdiff(now, bar->prevtime) < 200) /* allow 5 Hz */
+ if(tvdiff(now, bar->prevtime) < 200L) /* allow 5 Hz */
return 0;
/* expected transfer size */