mirror of
https://github.com/curl/curl.git
synced 2026-04-14 23:01:41 +03:00
lib: stop overriding system printf symbols
After this patch, the codebase no longer overrides system printf functions. Instead it explicitly calls either the curl printf functions `curl_m*printf()` or the system ones using their original names. Also: - drop unused `curl_printf.h` includes. - checksrc: ban system printf functions, allow where necessary. Follow-up todb98daab05#18844 Follow-up to4deea9396b#18814 Closes #18866
This commit is contained in:
parent
13f10add17
commit
b12da22db1
147 changed files with 1030 additions and 1145 deletions
|
|
@ -49,8 +49,7 @@
|
|||
#include "x509asn1.h"
|
||||
#include "../curlx/dynbuf.h"
|
||||
|
||||
/* The last 3 #include files should be in this order */
|
||||
#include "../curl_printf.h"
|
||||
/* The last 2 #include files should be in this order */
|
||||
#include "../curl_memory.h"
|
||||
#include "../memdebug.h"
|
||||
|
||||
|
|
@ -998,7 +997,7 @@ static int do_pubkey(struct Curl_easy *data, int certnum,
|
|||
infof(data, " ECC Public Key (%zu bits)", len);
|
||||
if(data->set.ssl.certinfo) {
|
||||
char q[sizeof(len) * 8 / 3 + 1];
|
||||
(void)msnprintf(q, sizeof(q), "%zu", len);
|
||||
(void)curl_msnprintf(q, sizeof(q), "%zu", len);
|
||||
if(ssl_push_certinfo(data, certnum, "ECC Public Key", q))
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -1033,7 +1032,7 @@ static int do_pubkey(struct Curl_easy *data, int certnum,
|
|||
infof(data, " RSA Public Key (%zu bits)", len);
|
||||
if(data->set.ssl.certinfo) {
|
||||
char r[sizeof(len) * 8 / 3 + 1];
|
||||
msnprintf(r, sizeof(r), "%zu", len);
|
||||
curl_msnprintf(r, sizeof(r), "%zu", len);
|
||||
if(ssl_push_certinfo(data, certnum, "RSA Public Key", r))
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue