X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Ftermsbr.c;h=740d021066b2909a899f146e193708884c682c1e;hb=f6aa95b724fd8c791164abe7ee5468bf5c34f226;hp=421c367014983a22ec17d039fa5a52807d30ca84;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/uip/termsbr.c b/uip/termsbr.c index 421c367..740d021 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -2,8 +2,6 @@ /* * 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. @@ -105,10 +103,10 @@ read_termcap(void) * If possible, we let tgetent allocate its own termcap buffer */ #ifdef TGETENT_ACCEPTS_NULL - if (tgetent (NULL, term) <= 0) - return + if (tgetent (NULL, term) != TGETENT_SUCCESS) + return; #else - if (tgetent (termbuf, term) <= 0) + if (tgetent (termbuf, term) != TGETENT_SUCCESS) return; #endif