]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/firstlast.c
ncurses 5.5
[ncurses.git] / test / firstlast.c
index 6a79a33fbfb134af0e4dbc5db2e65c105533e1f2..288f848d6b38a1d9241b30df6b446028a8f0d888 100644 (file)
@@ -2,7 +2,7 @@
  * This test was written by Alexander V. Lukyanov to demonstrate difference
  * between ncurses 4.1 and SVR4 curses
  *
- * $Id: firstlast.c,v 1.3 2001/09/15 21:46:34 tom Exp $
+ * $Id: firstlast.c,v 1.4 2005/04/16 16:34:05 tom Exp $
  */
 
 #include <test.priv.h>
@@ -13,7 +13,7 @@ fill(WINDOW *w, const char *str)
     const char *s;
     for (;;) {
        for (s = str; *s; s++) {
-           if (waddch(w, *s) == ERR) {
+           if (waddch(w, UChar(*s)) == ERR) {
                wmove(w, 0, 0);
                return;
            }
@@ -22,9 +22,8 @@ fill(WINDOW *w, const char *str)
 }
 
 int
-main(
-       int argc GCC_UNUSED,
-       char *argv[]GCC_UNUSED)
+main(int argc GCC_UNUSED,
+     char *argv[]GCC_UNUSED)
 {
     WINDOW *large, *small;
     initscr();