From cea297eb34d2361e79529034397465068ae34ecd Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sat, 1 Mar 2014 00:40:26 +0000 Subject: Vendor import of ncurses 5.9 20140222 snapshot. --- test/tclock.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/tclock.c') diff --git a/test/tclock.c b/test/tclock.c index fb44725d3209..24f33827b449 100644 --- a/test/tclock.c +++ b/test/tclock.c @@ -1,4 +1,4 @@ -/* $Id: tclock.c,v 1.30 2011/03/22 09:16:00 tom Exp $ */ +/* $Id: tclock.c,v 1.33 2013/09/28 21:52:34 tom Exp $ */ #include @@ -53,14 +53,14 @@ /* Plot a point */ static void -plot(int x, int y, char col) +plot(int x, int y, int col) { MvAddCh(y, x, (chtype) col); } /* Draw a diagonal(arbitrary) line using Bresenham's alogrithm. */ static void -dline(int pair, int from_x, int from_y, int x2, int y2, char ch) +dline(int pair, int from_x, int from_y, int x2, int y2, int ch) { int dx, dy; int ax, ay; @@ -135,8 +135,8 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) short my_bg = COLOR_BLACK; #if HAVE_GETTIMEOFDAY struct timeval current; - double fraction = 0.0; #endif + double fraction = 0.0; setlocale(LC_ALL, ""); @@ -216,12 +216,12 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) attroff(A_REVERSE); if (has_colors()) - (void) attrset(COLOR_PAIR(1)); + (void) attrset((attr_t) COLOR_PAIR(1)); dline(1, cx, cy, cx + sdx, cy - sdy, 'O'); if (has_colors()) - (void) attrset(COLOR_PAIR(0)); + (void) attrset((attr_t) COLOR_PAIR(0)); text = ctime(&tim); MvPrintw(2, 0, "%.*s", (int) (strlen(text) - 1), text); -- cgit v1.2.3