aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/panel/p_delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/panel/p_delete.c')
-rw-r--r--contrib/ncurses/panel/p_delete.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/ncurses/panel/p_delete.c b/contrib/ncurses/panel/p_delete.c
index aabccdc428f1..3f975d3b3e89 100644
--- a/contrib/ncurses/panel/p_delete.c
+++ b/contrib/ncurses/panel/p_delete.c
@@ -36,18 +36,19 @@
*/
#include "panel.priv.h"
-MODULE_ID("$Id: p_delete.c,v 1.2 1998/02/11 12:14:01 tom Exp $")
+MODULE_ID("$Id: p_delete.c,v 1.4 1999/11/25 13:49:26 juergen Exp $")
int
del_panel(PANEL *pan)
{
+ int err = OK;
if(pan)
{
dBug(("--> del_panel %s", USER_PTR(pan->user)));
- if(_nc_panel_is_linked(pan))
- (void)hide_panel(pan);
+ HIDE_PANEL(pan,err,FALSE);
free((void *)pan);
- return(OK);
}
- return(ERR);
+ else
+ err = ERR;
+ return(err);
}