/****************************************************************************
- * 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 *
*
* 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>
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,
" ");
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++) {
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();
}