Module Name:    src
Committed By:   christos
Date:           Mon Mar 20 20:42:39 UTC 2017

Modified Files:
        src/lib/libcurses: refresh.c

Log Message:
Make this compile again: use ce instead of clr_eol which gcc thinks might
be NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libcurses/refresh.c
diff -u src/lib/libcurses/refresh.c:1.87 src/lib/libcurses/refresh.c:1.88
--- src/lib/libcurses/refresh.c:1.87	Wed Jan 11 05:06:32 2017
+++ src/lib/libcurses/refresh.c	Mon Mar 20 16:42:39 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: refresh.c,v 1.87 2017/01/11 10:06:32 roy Exp $	*/
+/*	$NetBSD: refresh.c,v 1.88 2017/03/20 20:42:39 christos Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)refresh.c	8.7 (Berkeley) 8/13/94";
 #else
-__RCSID("$NetBSD: refresh.c,v 1.87 2017/01/11 10:06:32 roy Exp $");
+__RCSID("$NetBSD: refresh.c,v 1.88 2017/03/20 20:42:39 christos Exp $");
 #endif
 #endif				/* not lint */
 
@@ -985,7 +985,7 @@ makech(int wy)
 				    "makech: line = %p, cep = %p, begx = %u\n",
 				    curscr->alines[wy]->line, cep, win->begx);
 #endif
-				if (((clsp - nlsp >= strlen(clr_eol) &&
+				if (((clsp - nlsp >= strlen(ce) &&
 				    clsp < win->maxx * __LDATASIZE) ||
 				    wy == win->maxy - 1) &&
 				    (!(lspc & __COLOR) ||
@@ -997,7 +997,7 @@ makech(int wy)
 					    (curscr->wattr & __COLOR)))
 						__set_color(curscr, lspc &
 						    __COLOR);
-					tputs(clr_eol, 0, __cputchar);
+					tputs(ce, 0, __cputchar);
 					_cursesi_screen->lx = wx + win->begx;
 					while (wx++ <= clsp) {
 						csp->attr = lspc;

Reply via email to