-/* $Id: tclock.c,v 1.24 2002/12/29 01:40:30 tom Exp $ */
+/* $Id: tclock.c,v 1.26 2009/08/29 18:47:26 tom Exp $ */
#include <test.priv.h>
int d;
if (has_colors())
- attrset(COLOR_PAIR(pair));
+ (void) attrset(COLOR_PAIR(pair));
dx = x2 - from_x;
dy = y2 - from_y;
dline(3, cx, cy, cx + mdx, cy - mdy, '#');
- attrset(A_REVERSE);
+ (void) attrset(A_REVERSE);
dline(2, cx, cy, cx + hdx, cy - hdy, '.');
attroff(A_REVERSE);
if (has_colors())
- attrset(COLOR_PAIR(1));
+ (void) attrset(COLOR_PAIR(1));
dline(1, cx, cy, cx + sdx, cy - sdy, 'O');
if (has_colors())
- attrset(COLOR_PAIR(0));
+ (void) attrset(COLOR_PAIR(0));
text = ctime(&tim);
mvprintw(2, 0, "%.*s", (int) (strlen(text) - 1), text);
lastbeep = t->tm_sec;
if (has_colors()) {
odd = !odd;
- bkgd(odd ? COLOR_PAIR(4) : COLOR_PAIR(0));
+ bkgd((chtype) (odd ? COLOR_PAIR(4) : COLOR_PAIR(0)));
}
beep();
}