summaryrefslogtreecommitdiff
path: root/lib/libpanel/p_above.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_above.c
parent6a1dbf2ca7f6d392c63cfb7febcbfd18a8330bb7 (diff)
update to ncurses-5.0-19991127
Diffstat (limited to 'lib/libpanel/p_above.c')
-rw-r--r--lib/libpanel/p_above.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpanel/p_above.c b/lib/libpanel/p_above.c
index 4c090d0fdbb..c8941a6c89c 100644
--- a/lib/libpanel/p_above.c
+++ b/lib/libpanel/p_above.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: p_above.c,v 1.2 1998/07/24 17:08:05 millert Exp $ */
+/* $OpenBSD: p_above.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_above.c,v 1.2 1998/02/11 12:14:01 tom Exp $")
+MODULE_ID("$From: p_above.c,v 1.3 1999/09/18 11:03:28 juergen Exp $")
PANEL*
panel_above(const PANEL *pan)
@@ -46,7 +46,7 @@ panel_above(const PANEL *pan)
{
/* if top and bottom are equal, we have no or only the pseudo panel;
if not, we return the panel above the pseudo panel */
- return(_nc_bottom_panel==_nc_top_panel ? (PANEL*)0 : _nc_bottom_panel->above);
+ return(EMPTY_STACK() ? (PANEL*)0 : _nc_bottom_panel->above);
}
else
return(pan->above);