1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Merge binutils 2.15 einfo() buffering change to binutils-2.17.

OK deraadt@ miod@
This commit is contained in:
millert 2013-10-09 19:13:18 +00:00
parent 6e7ed74a74
commit 87aacc8692

View File

@ -495,10 +495,14 @@ void
einfo (const char *fmt, ...)
{
va_list arg;
char buf[BUFSIZ];
setvbuf(stderr, buf, _IOFBF, sizeof(buf));
va_start (arg, fmt);
vfinfo (stderr, fmt, arg, TRUE);
va_end (arg);
fflush(stderr);
setvbuf(stderr, NULL, _IONBF, 0);
}
void