From 87d064d9d1caaa7f29066eed043188dafa2ec171 Mon Sep 17 00:00:00 2001 From: Kjell Ericson Date: Fri, 18 Jun 2004 10:08:32 +0000 Subject: Ooops, I declared a variable in the middle of the code. Shame on me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4771 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/chessclock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c index 897f05aebb..b647a0fa76 100644 --- a/apps/plugins/chessclock.c +++ b/apps/plugins/chessclock.c @@ -186,6 +186,7 @@ static int run_timer(int nr) while (!done) { int button; + long now; if (ticks>max_ticks) { if (round_time) rb->lcd_puts(0, 1, "ROUND UP!"); @@ -201,7 +202,7 @@ static int run_timer(int nr) } */ rb->lcd_puts(0, 0, player_info); - long now=*rb->current_tick; + now=*rb->current_tick; if (!pause) { ticks+=now-last_tick; if ((max_ticks-ticks)/HZ == 10) { -- cgit v1.2.3