X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=menu%2Fm_item_top.c;h=9417e72bb561c3bd0b7126114f351201c541982a;hp=7268a0e49f15440222534c98026c8c05abe97266;hb=2db461ea0b1b29c142e3000d830b520c946e385b;hpb=55ccd2b959766810cf7db8d1c4462f338ce0afc8 diff --git a/menu/m_item_top.c b/menu/m_item_top.c index 7268a0e4..9417e72b 100644 --- a/menu/m_item_top.c +++ b/menu/m_item_top.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2003,2004 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 1998-2004,2010 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 * @@ -37,7 +38,7 @@ #include "menu.priv.h" -MODULE_ID("$Id: m_item_top.c,v 1.10 2004/12/11 23:29:34 tom Exp $") +MODULE_ID("$Id: m_item_top.c,v 1.12 2020/02/02 23:34:34 tom Exp $") /*--------------------------------------------------------------------------- | Facility : libnmenu @@ -54,7 +55,7 @@ set_top_row(MENU * menu, int row) { ITEM *item; - T((T_CALLED("set_top_row(%p,%d)"), menu, row)); + T((T_CALLED("set_top_row(%p,%d)"), (void *)menu, row)); if (menu) { @@ -94,7 +95,7 @@ set_top_row(MENU * menu, int row) NCURSES_EXPORT(int) top_row(const MENU * menu) { - T((T_CALLED("top_row(%p)"), menu)); + T((T_CALLED("top_row(%p)"), (const void *)menu)); if (menu && menu->items && *(menu->items)) { assert((menu->toprow >= 0) && (menu->toprow < menu->rows));