[bug #4302] errno is not always an extern int
[mmh] / uip / termsbr.c
index 77af468..421c367 100644 (file)
@@ -3,6 +3,10 @@
  * termsbr.c -- termcap support
  *
  * $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
 # include <termcap.h>
 #endif
 
+/* <sys/ioctl.h> is need anyway for ioctl()
 #ifdef GWINSZ_IN_SYS_IOCTL
+*/
 # include <sys/ioctl.h>
+/*
 #endif
+*/
+
 #ifdef WINSIZE_IN_PTEM
 # include <sys/stream.h>
 # include <sys/ptem.h>
@@ -170,7 +179,7 @@ sc_length (void)
 static int
 outc (int c)
 {
-    putchar(c);
+    return putchar(c);
 }