]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: don't use strerror()
authorDaniel Stenberg <daniel@haxx.se>
Wed, 8 Sep 2021 09:27:49 +0000 (11:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Sep 2021 05:53:42 +0000 (07:53 +0200)
commit2f0bb864c126892afc822e0cf5547d7ea5094212
treea22cb9fb03b3b731923cc1ffe4245b0a606297fe
parent71f9a8fa6f52723c0492c61ded070386706e99c6
lib: don't use strerror()

We have and provide Curl_strerror() internally for a reason: strerror()
is not necessarily thread-safe so we should always try to avoid it.

Extended checksrc to warn for this, but feature the check disabled by
default and only enable it in lib/

Closes #7685
lib/.checksrc [new file with mode: 0644]
lib/checksrc.pl
lib/non-ascii.c
lib/strerror.c
lib/url.c
lib/vtls/gskit.c
lib/vtls/rustls.c
lib/vtls/sectransp.c