diff options
author | Nils Wallménius <nils@rockbox.org> | 2009-10-25 10:20:15 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2009-10-25 10:20:15 +0000 |
commit | 18cf68e391808608855a024057f24d7506adec26 (patch) | |
tree | a49a20250ebe25baac5727afe8c2018e172fbb14 /apps | |
parent | 7e35619fb696dfb08820e4fc6ea750cf23a6ea2c (diff) |
No need for this to be static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23342 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c index 27641abe2d..4c7d48e2d9 100644 --- a/apps/main.c +++ b/apps/main.c @@ -239,7 +239,9 @@ static int init_dircache(bool preinit) static void init_tagcache(void) { bool clear = false; - +#if CONFIG_CODEC == SWCODEC + long talked_tick = 0; +#endif tagcache_init(); while (!tagcache_is_initialized()) @@ -251,7 +253,6 @@ static void init_tagcache(void) #if CONFIG_CODEC == SWCODEC /* hwcodec can't use voice here, as the database commit * uses the audio buffer. */ - static long talked_tick = 0; if(global_settings.talk_menu && (talked_tick == 0 || TIME_AFTER(current_tick, talked_tick+7*HZ))) |