← Commit list

e00cb001c6

Daniel Stenberg
Daniel Stenberg
2025-09-02
FAILED Duration: 173s

Subject

CURLINFO_FILETIME*.md: correct the examples

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/libcurl/opts/CURLINFO_FILETIME.md+1 -1
@@ -58,7 +58,7 @@ int main(void)
if(CURLE_OK == res) {
long filetime = 0;
res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
- if((CURLE_OK == res) && (filetime >= 0)) {
+ if((CURLE_OK == res) && (filetime != -1)) {
time_t file_time = (time_t)filetime;
printf("filetime: %s", ctime(&file_time));
}
docs/libcurl/opts/CURLINFO_FILETIME_T.md+1 -1
@@ -59,7 +59,7 @@ int main(void)
if(CURLE_OK == res) {
curl_off_t filetime;
res = curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &filetime);
- if((CURLE_OK == res) && (filetime >= 0)) {
+ if((CURLE_OK == res) && (filetime != -1)) {
time_t file_time = (time_t)filetime;
printf("filetime: %s", ctime(&file_time));
}