about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2002-05-06 14:50:10 +0000
committerBart Schaefer <barts@users.sourceforge.net>2002-05-06 14:50:10 +0000
commitd3454531d454c322493faa24195b102ac7522988 (patch)
tree62e497248e7acc4d6041969181d2234b8bfdb6bd /Src/init.c
parentcefd2de2e181eb4844ccec575322e410e75a1afd (diff)
downloadzsh-d3454531d454c322493faa24195b102ac7522988.tar.gz
zsh-d3454531d454c322493faa24195b102ac7522988.tar.xz
zsh-d3454531d454c322493faa24195b102ac7522988.zip
Detect variant tgetent() return value and test for it correctly.
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/init.c b/Src/init.c
index f343f3025..1a5728870 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -535,11 +535,11 @@ init_term(void)
 
 #ifdef TGETENT_ACCEPTS_NULL
     /* If possible, we let tgetent allocate its own termcap buffer */
-    if (tgetent(NULL, term) != 1) {
+    if (tgetent(NULL, term) != TGETENT_SUCCESS)
 #else
-    if (tgetent(termbuf, term) != 1) {
+    if (tgetent(termbuf, term) != TGETENT_SUCCESS)
 #endif
-
+    {
 	if (isset(INTERACTIVE))
 	    zerr("can't find terminal definition for %s", term, 0);
 	errflag = 0;