From d3454531d454c322493faa24195b102ac7522988 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 6 May 2002 14:50:10 +0000 Subject: Detect variant tgetent() return value and test for it correctly. --- Src/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/init.c') 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; -- cgit 1.4.1