X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ffilter.c;fp=test%2Ffilter.c;h=fe587cbb0821a5b3545daaefbce00cb6039a8ecf;hp=d047d56b01edc6fc0e42e4ad62fcb789cd58dd3d;hb=5723efe1a5c87ef6a0afa2426538156241f380db;hpb=11dcb05d1b3076f114ee807bd68cee1cfadff7dc diff --git a/test/filter.c b/test/filter.c index d047d56b..fe587cbb 100644 --- a/test/filter.c +++ b/test/filter.c @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey 1998 * - * $Id: filter.c,v 1.23 2016/04/09 23:52:22 tom Exp $ + * $Id: filter.c,v 1.24 2016/04/16 22:11:03 tom Exp $ * * An example of the 'filter()' function in ncurses, this program prompts * for commands and executes them (like a command shell). It illustrates @@ -92,7 +92,7 @@ show_prompt(int underline, bool clocked) move(y, x); } } - attron((chtype) underline); + attron(underline); return limit; } @@ -251,7 +251,7 @@ new_command(char *buffer, int length, int underline, bool clocked, bool polled) } #endif } - attroff((chtype) underline); + attroff(underline); attroff(A_BOLD); printw("\n");