summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-08-30 14:32:16 +0000
committerThomas Martitz <kugel@rockbox.org>2011-08-30 14:32:16 +0000
commit0c4c81620f33cbaf7114a6f98de52e26d07e038d (patch)
treed71a7167f4de0238db91596d7bcfdfc305988887 /apps
parent41b04e55eb41b30178cf1e5b9611ac9f93d3e141 (diff)
downloadrockbox-0c4c81620f33cbaf7114a6f98de52e26d07e038d.zip
rockbox-0c4c81620f33cbaf7114a6f98de52e26d07e038d.tar.gz
rockbox-0c4c81620f33cbaf7114a6f98de52e26d07e038d.tar.bz2
rockbox-0c4c81620f33cbaf7114a6f98de52e26d07e038d.tar.xz
Fix h100 red and other warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30384 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/mpeg.c2
-rw-r--r--apps/tagcache.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c
index 2beece1..2a2821b 100644
--- a/apps/mpeg.c
+++ b/apps/mpeg.c
@@ -128,6 +128,7 @@ static struct trackdata trackdata[MAX_TRACK_ENTRIES];
static unsigned int current_track_counter = 0;
#ifndef SIMULATOR
+static void stop_playing(void);
/* Play time of the previous track */
static unsigned long prev_track_elapsed;
@@ -493,7 +494,6 @@ unsigned long mpeg_get_last_header(void)
#endif /* !SIMULATOR */
}
-static void stop_playing(void);
static void do_stop(void)
{
is_playing = false;
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 5ab7726..e3f2f4f 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -3905,9 +3905,7 @@ static bool allocate_tagcache(void)
static bool tagcache_dumpload(void)
{
struct statefile_header shdr;
- int fd, rc;
- long offpos;
- int i, handle;
+ int fd, rc, handle;
fd = open(TAGCACHE_STATEFILE, O_RDONLY);
if (fd < 0)
@@ -3932,7 +3930,7 @@ static bool tagcache_dumpload(void)
/* Lets allocate real memory and load it */
handle = core_alloc_ex("tc ramcache", shdr.tc_stat.ramcache_allocated, &ops);
ramcache_hdr = core_get_data(handle);
- moev_lock++;
+ move_lock++;
rc = read(fd, ramcache_hdr, shdr.tc_stat.ramcache_allocated);
move_lock--;
close(fd);