X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fncurses.c;h=b701ebf3419bd0ad7be77e921c358f5407c70419;hp=78afb459f2308537fd950a7d58e3411d331d6691;hb=67ab4b308e932639a3a832052228d445c41c54b4;hpb=b802d89ac4a8abdc19fd39ec9bdc9a300c3dd181 diff --git a/test/ncurses.c b/test/ncurses.c index 78afb459..b701ebf3 100644 --- a/test/ncurses.c +++ b/test/ncurses.c @@ -40,7 +40,7 @@ AUTHOR Author: Eric S. Raymond 1993 Thomas E. Dickey (beginning revision 1.27 in 1996). -$Id: ncurses.c,v 1.393 2013/09/07 19:17:48 tom Exp $ +$Id: ncurses.c,v 1.395 2013/10/12 22:09:33 tom Exp $ ***************************************************************************/ @@ -1731,7 +1731,7 @@ wide_show_attr(int row, int skip, bool arrow, chtype attr, short pair, const cha attr_t old_attr = 0; short old_pair = 0; - (void) attr_get(&old_attr, &old_pair, 0); + (void) (attr_get)(&old_attr, &old_pair, 0); (void) attr_set(attr, pair, 0); addwstr(wide_attr_test_string); (void) attr_set(old_attr, old_pair, 0); @@ -2851,7 +2851,7 @@ slk_test(void) MvAddStr(SLK_WORK, 0, "Please enter the label value: "); strcpy(buf, ""); if ((s = slk_label(c - '0')) != 0) { - strncpy(buf, s, 8); + strncpy(buf, s, (size_t) 8); } wGetstring(stdscr, buf, 8); slk_set((c - '0'), buf, fmt); @@ -4348,7 +4348,7 @@ acs_and_scroll(void) transient((FRAME *) 0, (char *) 0); switch (c) { case CTRL('C'): - if ((neww = typeCalloc(FRAME, 1)) == 0) { + if ((neww = typeCalloc(FRAME, (size_t) 1)) == 0) { failed("acs_and_scroll"); goto breakout; } @@ -4430,7 +4430,7 @@ acs_and_scroll(void) if ((fp = fopen(DUMPFILE, "r")) == (FILE *) 0) { transient(current, "Can't open screen dump file"); } else { - if ((neww = typeCalloc(FRAME, 1)) != 0) { + if ((neww = typeCalloc(FRAME, (size_t) 1)) != 0) { neww->next = current ? current->next : 0; neww->last = current; @@ -6792,7 +6792,7 @@ main_menu(bool top) command = 0; for (;;) { char ch = '\0'; - if (read(fileno(stdin), &ch, 1) <= 0) { + if (read(fileno(stdin), &ch, (size_t) 1) <= 0) { if (command == 0) command = 'q'; break;