X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fbase%2Flib_newwin.c;h=262454eb180dfb242d7dbba741b0f0716e06c61f;hp=564c07fbb1f9e32f85e743880147e992547036e9;hb=2e68dc325852af56f2ec6c315b323a4f9c3d62c9;hpb=5eb177874dea59107a1a2ea44f5d8f5bb99550b2 diff --git a/ncurses/base/lib_newwin.c b/ncurses/base/lib_newwin.c index 564c07fb..262454eb 100644 --- a/ncurses/base/lib_newwin.c +++ b/ncurses/base/lib_newwin.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2011,2016 Free Software Foundation, Inc. * + * Copyright (c) 1998-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -43,7 +43,7 @@ #include #include -MODULE_ID("$Id: lib_newwin.c,v 1.72 2016/05/28 23:11:26 tom Exp $") +MODULE_ID("$Id: lib_newwin.c,v 1.73 2017/03/25 23:33:03 tom Exp $") #define window_is(name) ((sp)->_##name == win) @@ -104,12 +104,12 @@ _nc_freewin(WINDOW *win) WINDOWLIST *p, *q; q = 0; - for (each_window(SP_PARM, p)) { + for (each_window(sp, p)) { if (&(p->win) == win) { remove_window_from_screen(win); if (q == 0) - WindowList(SP_PARM) = p->next; + WindowList(sp) = p->next; else q->next = p->next;