summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-06-02 20:19:29 +0000
committertholo <tholo@openbsd.org>1996-06-02 20:19:29 +0000
commit0b9487ae43a20b91ae72b32f5992cc7b7ac92459 (patch)
treed31973c486701128afcb843c389a13718c04c4ee /lib
parentUse old curses library for now (diff)
downloadwireguard-openbsd-0b9487ae43a20b91ae72b32f5992cc7b7ac92459.tar.xz
wireguard-openbsd-0b9487ae43a20b91ae72b32f5992cc7b7ac92459.zip
setupterm() should return 1 for success, not OK
Diffstat (limited to 'lib')
-rw-r--r--lib/libtermlib/setupterm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libtermlib/setupterm.c b/lib/libtermlib/setupterm.c
index 643eb6fd0f1..39a264573be 100644
--- a/lib/libtermlib/setupterm.c
+++ b/lib/libtermlib/setupterm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: setupterm.c,v 1.1.1.1 1996/05/31 05:40:02 tholo Exp $ */
+/* $OpenBSD: setupterm.c,v 1.2 1996/06/02 20:19:29 tholo Exp $ */
/*
* Copyright (c) 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com>
@@ -31,7 +31,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: setupterm.c,v 1.1.1.1 1996/05/31 05:40:02 tholo Exp $";
+static char rcsid[] = "$OpenBSD: setupterm.c,v 1.2 1996/06/02 20:19:29 tholo Exp $";
#endif
#include <stdlib.h>
@@ -73,10 +73,10 @@ setupterm(name, fd, errstat)
if (ret < 0)
errx(1, "Terminal description database could not be found");
else
- errx(1, "Terminal type not found");
+ errx(1, "Terminal '%s' not found", name);
}
else if (errstat != NULL)
- *errstat = (ret == 1) ? OK : ERR;
+ *errstat = ret;
(void) _ti_tty_init();
- return ret == 1 ? OK : ERR;
+ return ret;
}