From 45ab2a91265845236dc3894c04c91b2b27c56c27 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sat, 23 Sep 2006 11:02:09 +0000 Subject: Oops, fixed the errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11031 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'apps') diff --git a/apps/tagcache.c b/apps/tagcache.c index 7da85578de..5566b17f03 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -2853,6 +2853,28 @@ static bool delete_entry(long idx_id) return true; } +/** + * Returns true if there is an event waiting in the queue + * that requires the current operation to be aborted. + */ +static bool check_event_queue(void) +{ + struct event ev; + + queue_wait_w_tmo(&tagcache_queue, &ev, 0); + switch (ev.id) + { + case Q_STOP_SCAN: + case SYS_POWEROFF: + case SYS_USB_CONNECTED: + /* Put the event back into the queue. */ + queue_post(&tagcache_queue, ev.id, ev.data); + return true; + } + + return false; +} + #ifdef HAVE_TC_RAMCACHE static bool allocate_tagcache(void) { @@ -2962,28 +2984,6 @@ static bool tagcache_dumpsave(void) } # endif -/** - * Returns true if there is an event waiting in the queue - * that requires the current operation to be aborted. - */ -static bool check_event_queue(void) -{ - struct event ev; - - queue_wait_w_tmo(&tagcache_queue, &ev, 0); - switch (ev.id) - { - case Q_STOP_SCAN: - case SYS_POWEROFF: - case SYS_USB_CONNECTED: - /* Put the event back into the queue. */ - queue_post(&tagcache_queue, ev.id, ev.data); - return true; - } - - return false; -} - static bool load_tagcache(void) { struct tagcache_header *tch; -- cgit v1.2.3