X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=menu%2Fm_item_top.c;fp=menu%2Fm_item_top.c;h=ee0d17b43dd55c16fca16d918dde8a3ea6f45d27;hp=57f1a4315e45fb4129459818eadb61d8873da77c;hb=5925150381bb42a4d8c7116d62c348a7b84309f3;hpb=42259b594b5dabd37fe2bc294051d2db82e873a2 diff --git a/menu/m_item_top.c b/menu/m_item_top.c index 57f1a431..ee0d17b4 100644 --- a/menu/m_item_top.c +++ b/menu/m_item_top.c @@ -38,7 +38,7 @@ #include "menu.priv.h" -MODULE_ID("$Id: m_item_top.c,v 1.13 2020/05/24 01:40:20 anonymous.maarten Exp $") +MODULE_ID("$Id: m_item_top.c,v 1.14 2020/12/12 00:38:08 tom Exp $") /*--------------------------------------------------------------------------- | Facility : libnmenu @@ -51,7 +51,7 @@ MODULE_ID("$Id: m_item_top.c,v 1.13 2020/05/24 01:40:20 anonymous.maarten Exp $" | E_NOT_CONNECTED - there are no items for the menu +--------------------------------------------------------------------------*/ MENU_EXPORT(int) -set_top_row(MENU * menu, int row) +set_top_row(MENU *menu, int row) { ITEM *item; @@ -61,7 +61,7 @@ set_top_row(MENU * menu, int row) { if (menu->status & _IN_DRIVER) RETURN(E_BAD_STATE); - if (menu->items == (ITEM **) 0) + if (menu->items == (ITEM **)0) RETURN(E_NOT_CONNECTED); if ((row < 0) || (row > (menu->rows - menu->arows))) @@ -93,7 +93,7 @@ set_top_row(MENU * menu, int row) | Return Values : The row number or ERR if there is no row +--------------------------------------------------------------------------*/ MENU_EXPORT(int) -top_row(const MENU * menu) +top_row(const MENU *menu) { T((T_CALLED("top_row(%p)"), (const void *)menu)); if (menu && menu->items && *(menu->items))