mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:51:53 +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
|
|
@ -105,8 +105,7 @@
|
|||
#define HTTPSRR_WORKS
|
||||
#endif
|
||||
|
||||
/* 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"
|
||||
|
||||
|
|
@ -782,7 +781,7 @@ struct Curl_addrinfo *Curl_async_getaddrinfo(struct Curl_easy *data,
|
|||
* accordingly to save a call to getservbyname in inside C-Ares
|
||||
*/
|
||||
hints.ai_flags = ARES_AI_NUMERICSERV;
|
||||
msnprintf(service, sizeof(service), "%d", port);
|
||||
curl_msnprintf(service, sizeof(service), "%d", port);
|
||||
ares->num_pending = 1;
|
||||
ares_getaddrinfo(ares->channel, data->state.async.hostname,
|
||||
service, &hints, async_ares_addrinfo_cb, data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue