X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fhanoi.c;h=671c0cb47ed3ca2e76a11518e7cea05b4a1195f3;hb=3996fe0bf797f113d6abc4329cc869951735a4d8;hp=bd0fb10e1f8e9a3aaca0067f3aca82357921ae4e;hpb=8f527f87c0b979d9c2598ef5c3394463af288468;p=ncurses.git diff --git a/test/hanoi.c b/test/hanoi.c index bd0fb10e..671c0cb4 100644 --- a/test/hanoi.c +++ b/test/hanoi.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2006,2008 Free Software Foundation, Inc. * + * Copyright (c) 1998-2008,2009 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 * @@ -41,7 +41,7 @@ * * Date: 05.Nov.90 * - * $Id: hanoi.c,v 1.27 2008/08/04 10:57:59 tom Exp $ + * $Id: hanoi.c,v 1.28 2009/08/29 19:02:25 tom Exp $ */ #include @@ -229,7 +229,7 @@ DisplayTiles(void) mvaddstr(1, 24, "T O W E R S O F H A N O I"); mvaddstr(3, 34, "SJR 1990"); mvprintw(19, 5, "Moves : %d", NMoves); - attrset(A_REVERSE); + (void) attrset(A_REVERSE); mvaddstr(BASELINE, 8, " "); @@ -241,7 +241,7 @@ DisplayTiles(void) mvaddch(BASELINE, LEFTPEG, '1'); mvaddch(BASELINE, MIDPEG, '2'); mvaddch(BASELINE, RIGHTPEG, '3'); - attrset(A_NORMAL); + (void) attrset(A_NORMAL); /* Draw tiles */ for (peg = 0; peg < NPEGS; peg++) { @@ -251,16 +251,16 @@ DisplayTiles(void) memset(TileBuf, ' ', len); TileBuf[len] = '\0'; if (has_colors()) - attrset(COLOR_PAIR(LENTOIND(len))); + (void) attrset(COLOR_PAIR(LENTOIND(len))); else - attrset(A_REVERSE); + (void) attrset(A_REVERSE); mvaddstr(BASELINE - (SlotNo + 1), (int) (PegPos[peg] - len / 2), TileBuf); } } } - attrset(A_NORMAL); + (void) attrset(A_NORMAL); refresh(); }