summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e449974)
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.
void vwarn(const char *fmt, va_list ap)
{
fprintf (stderr, "%s: ", __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)
}
void vwarnx(const char *fmt, va_list ap)