Module Name:    src
Committed By:   roy
Date:           Thu Jan 12 16:23:47 UTC 2017

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

Log Message:
Use the screen argument, not _cursesi_screen.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libcurses/ripoffline.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/ripoffline.c
diff -u src/lib/libcurses/ripoffline.c:1.1 src/lib/libcurses/ripoffline.c:1.2
--- src/lib/libcurses/ripoffline.c:1.1	Wed Jan 11 20:43:03 2017
+++ src/lib/libcurses/ripoffline.c	Thu Jan 12 16:23:46 2017
@@ -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 @@ __ripoffscreen(SCREEN *screen, int *rtop
 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 {

Reply via email to