summaryrefslogtreecommitdiff
path: root/net/nocol/patches/patch-ac
blob: 1f1a3a08a7fc52461d7372aa3bfee8f1e7647217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ac,v 1.5 2005/12/27 13:47:11 joerg Exp $

--- netconsole/help_page.c.orig	1998-07-31 18:22:13.000000000 +0000
+++ netconsole/help_page.c
@@ -38,11 +38,10 @@
 # define HELPFILE	"helpfile"
 #endif
 
-#define WFULL(w)  	(w->_cury == (w->_maxy - 2)) ? 1:0
+#define WFULL(w)        (getcury(w) == (getmaxy(w) - 2)) ? 1:0
 
 help_page()
 {
-    extern int errno;
     extern char *helpfile ;			/* In netconsole.h  */
     WINDOW *hwin;
     char buffer[MAXLINE], *strcat() ;