]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/filter.c
ncurses 6.0 - patch 20160528
[ncurses.git] / test / filter.c
index d047d56b01edc6fc0e42e4ad62fcb789cd58dd3d..fe587cbb0821a5b3545daaefbce00cb6039a8ecf 100644 (file)
@@ -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");