diff options
| author | Kjell Ericson <kjell@haxx.se> | 2004-06-18 10:08:32 +0000 |
|---|---|---|
| committer | Kjell Ericson <kjell@haxx.se> | 2004-06-18 10:08:32 +0000 |
| commit | 87d064d9d1caaa7f29066eed043188dafa2ec171 (patch) | |
| tree | c79196ee2207a5cf4fb90397542c6d7a9fe3e85a /apps/plugins/chessclock.c | |
| parent | 8586786d98490267fd703b9ca7d1e2d50b52bc58 (diff) | |
| download | rockbox-87d064d9d1caaa7f29066eed043188dafa2ec171.zip rockbox-87d064d9d1caaa7f29066eed043188dafa2ec171.tar.gz rockbox-87d064d9d1caaa7f29066eed043188dafa2ec171.tar.bz2 rockbox-87d064d9d1caaa7f29066eed043188dafa2ec171.tar.xz | |
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
Diffstat (limited to 'apps/plugins/chessclock.c')
| -rw-r--r-- | apps/plugins/chessclock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/chessclock.c b/apps/plugins/chessclock.c index 897f05a..b647a0f 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) { |