Go to file
Viktor Szakats 3b9569c3e2
lib: prefer var = time(NULL) over time(&var)
Following up on previous occurrences showing up as gcc warnings, replace
the remaining `time(&var)` calls with `var = time(NULL)`, though these
aren't specifically causing compiler warnings. These are in the TFTP
client code (`lib/tftp.c`), except one which is in a debug branch in
`lib/http_aws_sigv4.c`.

What's unexplainable is that this patch seems to mitigate TFTP tests
often hanging or going into an infinite loop on GHA windows workflows
with MSYS2, mingw-w64 and MSVC (Cygwin is unaffected):
  https://github.com/curl/curl/pull/13599#issuecomment-2119372376
TFTP hangs did not entirely disappear though, so could be unrelated.

`time()` docs:
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/time-time32-time64
https://manpages.debian.org/bookworm/manpages-dev/time.2.en.html

Follow-up to 58ca0a2f07 #13800
Follow-up to d0728c9109 #13643
Closes #13815
2024-05-29 21:45:28 +02:00
.circleci Add some basic versioning for some workflows to check whether this is detected properly 2024-05-13 22:34:46 +01:00
.github GHA: enable tests 1139, 1177, 1477 on Windows 2024-05-28 21:20:12 +02:00
.reuse reuse: migrate standalone license file to dep5 2024-05-15 14:15:25 +02:00
CMake build: untangle CURLDEBUG and DEBUGBUILD macros 2024-05-28 08:12:00 +02:00
docs cd2nroff: use an empty "##" to signal end of .IP sequence 2024-05-29 12:49:40 +02:00
include build: untangle CURLDEBUG and DEBUGBUILD macros 2024-05-28 08:12:00 +02:00
lib lib: prefer var = time(NULL) over time(&var) 2024-05-29 21:45:28 +02:00
LICENSES
m4 autotools: Only probe for SGI MIPS compilers on IRIX 2024-05-14 10:04:27 +02:00
packages os400: sync with latest changes 2024-04-17 22:33:40 +02:00
plan9
projects projects: drop MSVC project files for recent versions 2024-04-10 07:55:24 +02:00
scripts cd2nroff: use an empty "##" to signal end of .IP sequence 2024-05-29 12:49:40 +02:00
src curl: make warnings and other messages aware of terminal width 2024-05-28 23:12:32 +02:00
tests sectransp: use common code for cipher suite lookup 2024-05-29 13:08:14 +02:00
winbuild winbuild: remove outdated WIN32 defines 2024-05-24 03:23:14 -04:00
.azure-pipelines.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
.cirrus.yml CI: disable dependency tracking in most autotools builds 2024-05-27 22:25:14 +02:00
.dcignore
.dir-locals.el
.git-blame-ignore-revs
.gitattributes
.gitignore TLS: add support for ECH (Encrypted Client Hello) 2024-04-16 08:10:53 +02:00
.mailmap .mailmap: update Gisle's preferred email 2024-04-09 08:50:07 +02:00
acinclude.m4 windows: delete redundant headers 2023-12-18 14:56:57 +00:00
appveyor.sh build: untangle UNITTESTS and DEBUGBUILD macros 2024-05-27 21:15:50 +02:00
appveyor.yml build: untangle CURLDEBUG and DEBUGBUILD macros 2024-05-28 08:12:00 +02:00
buildconf
buildconf.bat buildconf.bat: remove outdated groff/nroff use 2024-03-07 22:38:16 +01:00
CHANGES
CMakeLists.txt cmake: use APPLE instead of CMAKE_SYSTEM_NAME string 2024-05-27 18:17:43 +02:00
configure.ac build: untangle CURLDEBUG and DEBUGBUILD macros 2024-05-28 08:12:00 +02:00
COPYING COPYING: update copyright year 2024-01-08 18:40:06 +01:00
curl-config.in GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
Dockerfile Dockerfile: update debian digest to 911821c 2024-05-15 08:16:49 +02:00
GIT-INFO.md GIT-INFO: convert to markdown 2024-03-07 09:43:33 +01:00
libcurl.def lib: add curl_multi_waitfds 2024-04-09 16:53:40 +02:00
libcurl.pc.in
Makefile.am Dockerfile: for release automation and reproducibility 2024-04-16 16:53:25 +02:00
Makefile.dist Makefile.mk: drop Windows support 2023-12-16 13:12:22 +00:00
maketgz projects: drop MSVC project files for recent versions 2024-04-10 07:55:24 +02:00
README
README.md tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
RELEASE-NOTES RELEASE-NOTES: synced 2024-05-28 10:29:05 +02:00
renovate.json ci: disable Renovate dashboard 2024-05-16 10:44:20 +02:00
SECURITY.md SECURITY-PROCESS.md. call it vulnerability disclosure policy 2023-09-14 17:04:33 +02:00

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how.

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Git

To download the latest source from the Git server, do this:

git clone https://github.com/curl/curl.git

(you will get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.