]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/hanoi.c
ncurses 5.7 - patch 20090829
[ncurses.git] / test / hanoi.c
index bd0fb10e1f8e9a3aaca0067f3aca82357921ae4e..671c0cb47ed3ca2e76a11518e7cea05b4a1195f3 100644 (file)
@@ -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 <test.priv.h>
@@ -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();
 }