pkgsrc/cad/magic/patches/patch-utils_LIBtextio.c
2013-03-07 22:05:12 +00:00

32 lines
683 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$NetBSD: patch-utils_LIBtextio.c,v 1.2 2013/03/07 22:05:13 joerg Exp $
--- utils/LIBtextio.c.orig 2013-03-02 22:24:58.000000000 +0000
+++ utils/LIBtextio.c
@@ -94,18 +94,23 @@ TxFlush()
*
* ----------------------------------------------------------------------------
*/
+void
+VTxError(char *fmt, va_list va)
+{
+ (void) fflush(stdout);
+ (void) fflush(stderr);
+ vfprintf(stderr, fmt, ap);
+ (void) fflush(stderr);
+}
void
TxError(char *fmt, ...)
{
va_list ap;
- (void) fflush(stdout);
- (void) fflush(stderr);
va_start(ap, fmt);
- vfprintf(stderr, fmt, ap);
+ VTxError(fmt, ap);
va_end(ap);
- (void) fflush(stderr);
}