X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Finsdelln.c;h=ffca6aff68f28973039a4711a276c5bc6247c4be;hp=32a4aab8f9d68e886d300220157971c4ca3303d7;hb=5bfda8791637989e00be64748603cf4be2efbce5;hpb=c8e187fc9682a3c5cfaebc480fc98d8585f6caf6 diff --git a/test/insdelln.c b/test/insdelln.c index 32a4aab8..ffca6aff 100644 --- a/test/insdelln.c +++ b/test/insdelln.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2008,2009 Free Software Foundation, Inc. * + * Copyright (c) 2008-2010,2012 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 * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: insdelln.c,v 1.3 2009/08/29 18:47:26 tom Exp $ + * $Id: insdelln.c,v 1.6 2012/06/09 20:29:33 tom Exp $ * * test-driver for deleteln, wdeleteln, insdelln, winsdelln, insertln, winsertln */ @@ -56,8 +56,8 @@ color_params(unsigned state, int *pair) { /* *INDENT-OFF* */ static struct { - int pair; - int fg, bg; + short pair; + short fg, bg; const char *msg; } table[] = { { 0, COLOR_DEFAULT, COLOR_DEFAULT, "default" }, @@ -224,7 +224,7 @@ show_help(WINDOW *win) getmaxyx(win, y_max, x_max); for (row = 0; row < (int) SIZEOF(table) && row < y_max; ++row) { - mvwprintw(win, row, 0, "%.*s", x_max, table[row]); + MvWPrintw(win, row, 0, "%.*s", x_max, table[row]); } while (wgetch(win) != 'q') beep(); @@ -300,7 +300,7 @@ test_winsdelln(WINDOW *win) init_status(win, &st); do { - (void) wattrset(win, st.attr | COLOR_PAIR(st.pair)); + (void) wattrset(win, (int) (st.attr | (attr_t) COLOR_PAIR(st.pair))); switch (st.ch) { case 'i': for (n = 0; n < st.count; ++n) @@ -341,7 +341,7 @@ test_insdelln(void) init_status(stdscr, &st); do { - (void) attrset(st.attr | COLOR_PAIR(st.pair)); + (void) attrset(st.attr | (attr_t) COLOR_PAIR(st.pair)); switch (st.ch) { case 'i': for (n = 0; n < st.count; ++n)