Fix return value from endwin().

This commit is contained in:
mycroft 1994-08-14 14:27:37 +00:00
parent a618f9d915
commit 6da312060e
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)tty.c 8.2 (Berkeley) 1/2/94"; */
static char *rcsid = "$Id: tty.c,v 1.4 1994/01/24 08:36:59 cgd Exp $";
static char *rcsid = "$Id: tty.c,v 1.5 1994/08/14 14:27:37 mycroft Exp $";
#endif /* not lint */
#include <sys/ioctl.h>
@ -242,7 +242,7 @@ endwin()
(void)setvbuf(stdout, NULL, _IOLBF, 0);
return (tcsetattr(STDIN_FILENO, __tcaction ?
TCSASOFT | TCSADRAIN : TCSADRAIN, &__orig_termios));
TCSASOFT | TCSADRAIN : TCSADRAIN, &__orig_termios) ? ERR : OK);
}
/*