mirror of
https://github.com/fluencelabs/musl
synced 2025-06-10 21:41:33 +00:00
unbreak vwarn: print ": " before errno message
patch by Strake. this seems to be a regression caused by fixing the behavior of perror("") to match perror(0) at some point in the past.
This commit is contained in:
@ -8,8 +8,11 @@ extern char *__progname;
|
||||
void vwarn(const char *fmt, va_list ap)
|
||||
{
|
||||
fprintf (stderr, "%s: ", __progname);
|
||||
if (fmt) vfprintf(stderr, fmt, ap);
|
||||
perror("");
|
||||
if (fmt) {
|
||||
vfprintf(stderr, fmt, ap);
|
||||
fputs (": ", stderr);
|
||||
}
|
||||
perror(0);
|
||||
}
|
||||
|
||||
void vwarnx(const char *fmt, va_list ap)
|
||||
|
Reference in New Issue
Block a user