summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ericson <kjell@haxx.se>2004-06-18 10:08:32 +0000
committerKjell Ericson <kjell@haxx.se>2004-06-18 10:08:32 +0000
commit87d064d9d1caaa7f29066eed043188dafa2ec171 (patch)
treec79196ee2207a5cf4fb90397542c6d7a9fe3e85a
parent8586786d98490267fd703b9ca7d1e2d50b52bc58 (diff)
downloadrockbox-87d064d9d1caaa7f29066eed043188dafa2ec171.tar.gz
rockbox-87d064d9d1caaa7f29066eed043188dafa2ec171.zip
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
-rw-r--r--apps/plugins/chessclock.c3
1 files changed, 2 insertions, 1 deletions
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)
186 186
187 while (!done) { 187 while (!done) {
188 int button; 188 int button;
189 long now;
189 if (ticks>max_ticks) { 190 if (ticks>max_ticks) {
190 if (round_time) 191 if (round_time)
191 rb->lcd_puts(0, 1, "ROUND UP!"); 192 rb->lcd_puts(0, 1, "ROUND UP!");
@@ -201,7 +202,7 @@ static int run_timer(int nr)
201 } 202 }
202 */ 203 */
203 rb->lcd_puts(0, 0, player_info); 204 rb->lcd_puts(0, 0, player_info);
204 long now=*rb->current_tick; 205 now=*rb->current_tick;
205 if (!pause) { 206 if (!pause) {
206 ticks+=now-last_tick; 207 ticks+=now-last_tick;
207 if ((max_ticks-ticks)/HZ == 10) { 208 if ((max_ticks-ticks)/HZ == 10) {