Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Make this compile again: use ce instead of clr...
details: https://anonhg.NetBSD.org/src/rev/4e7a70072e8d
branches: trunk
changeset: 352198:4e7a70072e8d
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 20 20:42:39 2017 +0000
description:
Make this compile again: use ce instead of clr_eol which gcc thinks might
be NULL.
diffstat:
lib/libcurses/refresh.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r fc1ff25886b9 -r 4e7a70072e8d lib/libcurses/refresh.c
--- a/lib/libcurses/refresh.c Mon Mar 20 18:19:34 2017 +0000
+++ b/lib/libcurses/refresh.c Mon Mar 20 20:42:39 2017 +0000
@@ -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: 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 @@
(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;
Home |
Main Index |
Thread Index |
Old Index