summaryrefslogtreecommitdiff
path: root/lib/libpanel/p_below.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-11-28 17:49:56 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-11-28 17:49:56 +0000
commitf820514c542a093ae7ff2d7db431e6499126014d (patch)
tree77c8d1b77675d5d4b3e01bde3eb10e573384771e /lib/libpanel/p_below.c
parent6a1dbf2ca7f6d392c63cfb7febcbfd18a8330bb7 (diff)
update to ncurses-5.0-19991127
Diffstat (limited to 'lib/libpanel/p_below.c')
-rw-r--r--lib/libpanel/p_below.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpanel/p_below.c b/lib/libpanel/p_below.c
index 02287a88565..33bad48323f 100644
--- a/lib/libpanel/p_below.c
+++ b/lib/libpanel/p_below.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p_below.c,v 1.2 1998/07/24 17:08:06 millert Exp $ */
+/* $OpenBSD: p_below.c,v 1.3 1999/11/28 17:49:19 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998 Free Software Foundation, Inc. *
@@ -37,7 +37,7 @@
*/
#include "panel.priv.h"
-MODULE_ID("$From: p_below.c,v 1.2 1998/02/11 12:14:01 tom Exp $")
+MODULE_ID("$From: p_below.c,v 1.3 1999/09/18 11:03:33 juergen Exp $")
PANEL*
panel_below(const PANEL *pan)
@@ -45,11 +45,11 @@ panel_below(const PANEL *pan)
if(!pan)
{
/* if top and bottom are equal, we have no or only the pseudo panel */
- return(_nc_top_panel==_nc_bottom_panel ? (PANEL*)0 : _nc_top_panel);
+ return(EMPTY_STACK() ? (PANEL*)0 : _nc_top_panel);
}
else
{
/* we must not return the pseudo panel */
- return(pan->below==_nc_bottom_panel ? (PANEL*) 0 : pan->below);
+ return(Is_Pseudo(pan->below) ? (PANEL*) 0 : pan->below);
}
}