mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01: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:
parent
e449974dc5
commit
580b8d8c52
1 changed files with 5 additions and 2 deletions
|
@ -8,8 +8,11 @@ extern char *__progname;
|
||||||
void vwarn(const char *fmt, va_list ap)
|
void vwarn(const char *fmt, va_list ap)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "%s: ", __progname);
|
fprintf (stderr, "%s: ", __progname);
|
||||||
if (fmt) vfprintf(stderr, fmt, ap);
|
if (fmt) {
|
||||||
perror("");
|
vfprintf(stderr, fmt, ap);
|
||||||
|
fputs (": ", stderr);
|
||||||
|
}
|
||||||
|
perror(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void vwarnx(const char *fmt, va_list ap)
|
void vwarnx(const char *fmt, va_list ap)
|
||||||
|
|
Loading…
Add table
Reference in a new issue