mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:23:36 +03:00
src: stop overriding system printf symbols
Also:
- tool_operate: use the socket printf mask, drop cast.
Follow-up to 4deea9396b #18814
Closes #18844
This commit is contained in:
parent
34ad78da89
commit
db98daab05
25 changed files with 203 additions and 207 deletions
|
|
@ -49,7 +49,7 @@ static void voutf(const char *prefix,
|
|||
char *ptr;
|
||||
char *print_buffer;
|
||||
|
||||
print_buffer = vaprintf(fmt, ap);
|
||||
print_buffer = curl_mvaprintf(fmt, ap);
|
||||
if(!print_buffer)
|
||||
return;
|
||||
len = strlen(print_buffer);
|
||||
|
|
@ -120,15 +120,15 @@ void helpf(const char *fmt, ...)
|
|||
va_start(ap, fmt);
|
||||
DEBUGASSERT(!strchr(fmt, '\n'));
|
||||
fputs("curl: ", tool_stderr); /* prefix it */
|
||||
vfprintf(tool_stderr, fmt, ap);
|
||||
curl_mvfprintf(tool_stderr, fmt, ap);
|
||||
va_end(ap);
|
||||
fputs("\n", tool_stderr); /* newline it */
|
||||
}
|
||||
fprintf(tool_stderr, "curl: try 'curl --help' "
|
||||
curl_mfprintf(tool_stderr, "curl: try 'curl --help' "
|
||||
#ifdef USE_MANUAL
|
||||
"or 'curl --manual' "
|
||||
"or 'curl --manual' "
|
||||
#endif
|
||||
"for more information\n");
|
||||
"for more information\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue