summaryrefslogtreecommitdiff
path: root/src/tool_getparam.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-26 16:52:03 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-27 08:45:02 +0100
commit71acece933a4b8b7cf0e661b88380eaeacd8e43f (patch)
tree6c904378f1f02e134677c8fb943a33020175eb95 /src/tool_getparam.c
parentd3ca0771d212c4c94787b43748600efc8a4a0951 (diff)
downloadcurl-71acece933a4b8b7cf0e661b88380eaeacd8e43f.tar.gz
curl: move fprintf outputs to warnf
For setting and getting time of the download. To make the outputs respect --silent etc. Reported-by: Viktor Szakats Fixes #6533 Closes #6535
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r--src/tool_getparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index feb4109fd..10efe3612 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -2253,7 +2253,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
config->condtime = (curl_off_t)curl_getdate(nextarg, &now);
if(-1 == config->condtime) {
/* now let's see if it is a file name to get the time from instead! */
- curl_off_t filetime = getfiletime(nextarg, config->global->errors);
+ curl_off_t filetime = getfiletime(nextarg, global);
if(filetime >= 0) {
/* pull the time out from the file */
config->condtime = filetime;