X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Ffirstlast.c;h=288f848d6b38a1d9241b30df6b446028a8f0d888;hb=55ccd2b959766810cf7db8d1c4462f338ce0afc8;hp=6a79a33fbfb134af0e4dbc5db2e65c105533e1f2;hpb=a8987e73ec254703634802b4f7ee30d3a485524d;p=ncurses.git diff --git a/test/firstlast.c b/test/firstlast.c index 6a79a33f..288f848d 100644 --- a/test/firstlast.c +++ b/test/firstlast.c @@ -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 @@ -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();