$OpenBSD: patch-common_ttyio_h,v 1.1 2021/09/21 19:14:37 tb Exp $

Index: common/ttyio.h
--- common/ttyio.h.orig
+++ common/ttyio.h
@@ -38,13 +38,13 @@ int tty_batchmode (int onoff);
 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
 void tty_printf (const char *fmt, ... )
                  __attribute__ ((format (printf,1,2)));
-void tty_fprintf (estream_t fp, const char *fmt, ... )
+int tty_fprintf (estream_t fp, const char *fmt, ... )
                  __attribute__ ((format (printf,2,3)));
 char *tty_getf (const char *promptfmt, ... )
                  __attribute__ ((format (printf,1,2)));
 #else
 void tty_printf (const char *fmt, ... );
-void tty_fprintf (estream_t fp, const char *fmt, ... );
+int tty_fprintf (estream_t fp, const char *fmt, ... );
 char *tty_getf (const char *promptfmt, ... );
 #endif
 void tty_print_utf8_string (const unsigned char *p, size_t n);
