diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-01-26 16:52:03 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-27 08:45:02 +0100 |
commit | 71acece933a4b8b7cf0e661b88380eaeacd8e43f (patch) | |
tree | 6c904378f1f02e134677c8fb943a33020175eb95 /src/tool_filetime.h | |
parent | d3ca0771d212c4c94787b43748600efc8a4a0951 (diff) | |
download | curl-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_filetime.h')
-rw-r--r-- | src/tool_filetime.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/tool_filetime.h b/src/tool_filetime.h index c75dc57e5..f3883d2c5 100644 --- a/src/tool_filetime.h +++ b/src/tool_filetime.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -23,15 +23,17 @@ ***************************************************************************/ #include "tool_setup.h" -curl_off_t getfiletime(const char *filename, FILE *error_stream); +struct GlobalConfig; -#if defined(HAVE_UTIME) || defined(HAVE_UTIMES) || \ - (defined(WIN32) && (SIZEOF_CURL_OFF_T >= 8)) +curl_off_t getfiletime(const char *filename, struct GlobalConfig *global); + +#if defined(HAVE_UTIME) || defined(HAVE_UTIMES) || \ + (defined(WIN32) && (SIZEOF_CURL_OFF_T >= 8)) void setfiletime(curl_off_t filetime, const char *filename, - FILE *error_stream); + struct GlobalConfig *global); #else #define setfiletime(a,b,c) Curl_nop_stmt -#endif /* defined(HAVE_UTIME) || defined(HAVE_UTIMES) || \ +#endif /* defined(HAVE_UTIME) || defined(HAVE_UTIMES) || \ (defined(WIN32) && (SIZEOF_CURL_OFF_T >= 8)) */ #endif /* HEADER_CURL_TOOL_FILETIME_H */ |