blob: a4ab614b75a25e6e39cf255a22631abe3c9bfac8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-ac,v 1.6 2012/09/09 19:49:45 dholland Exp $
- don't declare own errno
- don't use curses internals
--- 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() ;
|