mirror of
https://github.com/curl/curl.git
synced 2026-08-24 11:33:33 +03:00
curl: remove first argument from helpf()
It was always the same and it is a global already! Closes #18221
This commit is contained in:
parent
16eac53dc9
commit
02b22ee4ea
5 changed files with 15 additions and 15 deletions
|
|
@ -113,18 +113,18 @@ void warnf(const char *fmt, ...)
|
|||
* Emit help formatted message on given stream. This is for errors with or
|
||||
* related to command line arguments.
|
||||
*/
|
||||
void helpf(FILE *errors, const char *fmt, ...)
|
||||
void helpf(const char *fmt, ...)
|
||||
{
|
||||
if(fmt) {
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
DEBUGASSERT(!strchr(fmt, '\n'));
|
||||
fputs("curl: ", errors); /* prefix it */
|
||||
vfprintf(errors, fmt, ap);
|
||||
fputs("curl: ", tool_stderr); /* prefix it */
|
||||
vfprintf(tool_stderr, fmt, ap);
|
||||
va_end(ap);
|
||||
fputs("\n", errors); /* newline it */
|
||||
fputs("\n", tool_stderr); /* newline it */
|
||||
}
|
||||
fprintf(errors, "curl: try 'curl --help' "
|
||||
fprintf(tool_stderr, "curl: try 'curl --help' "
|
||||
#ifdef USE_MANUAL
|
||||
"or 'curl --manual' "
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue