Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses Use the screen argument, not _cursesi_screen.



details:   https://anonhg.NetBSD.org/src/rev/5aeb4b2f115b
branches:  trunk
changeset: 820616:5aeb4b2f115b
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Jan 12 16:23:46 2017 +0000

description:
Use the screen argument, not _cursesi_screen.

diffstat:

 lib/libcurses/ripoffline.c |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r be77607f78fb -r 5aeb4b2f115b lib/libcurses/ripoffline.c
--- a/lib/libcurses/ripoffline.c        Thu Jan 12 14:27:14 2017 +0000
+++ b/lib/libcurses/ripoffline.c        Thu Jan 12 16:23:46 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ripoffline.c,v 1.1 2017/01/11 20:43:03 roy Exp $       */
+/*     $NetBSD: ripoffline.c,v 1.2 2017/01/12 16:23:46 roy Exp $       */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ripoffline.c,v 1.1 2017/01/11 20:43:03 roy Exp $");
+__RCSID("$NetBSD: ripoffline.c,v 1.2 2017/01/12 16:23:46 roy Exp $");
 #endif                         /* not lint */
 
 #include "curses.h"
@@ -137,13 +137,10 @@
 void
 __ripoffresize(SCREEN *screen)
 {
-       int rbot = _cursesi_screen->LINES, i;
+       int rbot = screen->LINES, i;
        struct __ripoff *rip;
 
-       for (i = 0, rip = _cursesi_screen->ripped;
-            i < _cursesi_screen->nripped;
-            i++, rip++)
-       {
+       for (i = 0, rip = screen->ripped; i < screen->nripped; i++, rip++) {
                if (rip->nlines > 0)
                        touchwin(rip->win);
                else {



Home | Main Index | Thread Index | Old Index