diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-08-30 14:32:16 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-08-30 14:32:16 +0000 |
commit | 0c4c81620f33cbaf7114a6f98de52e26d07e038d (patch) | |
tree | d71a7167f4de0238db91596d7bcfdfc305988887 /apps | |
parent | 41b04e55eb41b30178cf1e5b9611ac9f93d3e141 (diff) | |
download | rockbox-0c4c81620f33cbaf7114a6f98de52e26d07e038d.tar.gz rockbox-0c4c81620f33cbaf7114a6f98de52e26d07e038d.zip |
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.c | 2 | ||||
-rw-r--r-- | apps/tagcache.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c index 2beece1c0c..2a2821bcda 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c | |||
@@ -128,6 +128,7 @@ static struct trackdata trackdata[MAX_TRACK_ENTRIES]; | |||
128 | static unsigned int current_track_counter = 0; | 128 | static unsigned int current_track_counter = 0; |
129 | 129 | ||
130 | #ifndef SIMULATOR | 130 | #ifndef SIMULATOR |
131 | static void stop_playing(void); | ||
131 | /* Play time of the previous track */ | 132 | /* Play time of the previous track */ |
132 | static unsigned long prev_track_elapsed; | 133 | static unsigned long prev_track_elapsed; |
133 | 134 | ||
@@ -493,7 +494,6 @@ unsigned long mpeg_get_last_header(void) | |||
493 | #endif /* !SIMULATOR */ | 494 | #endif /* !SIMULATOR */ |
494 | } | 495 | } |
495 | 496 | ||
496 | static void stop_playing(void); | ||
497 | static void do_stop(void) | 497 | static void do_stop(void) |
498 | { | 498 | { |
499 | is_playing = false; | 499 | is_playing = false; |
diff --git a/apps/tagcache.c b/apps/tagcache.c index 5ab77264f6..e3f2f4fe68 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -3905,9 +3905,7 @@ static bool allocate_tagcache(void) | |||
3905 | static bool tagcache_dumpload(void) | 3905 | static bool tagcache_dumpload(void) |
3906 | { | 3906 | { |
3907 | struct statefile_header shdr; | 3907 | struct statefile_header shdr; |
3908 | int fd, rc; | 3908 | int fd, rc, handle; |
3909 | long offpos; | ||
3910 | int i, handle; | ||
3911 | 3909 | ||
3912 | fd = open(TAGCACHE_STATEFILE, O_RDONLY); | 3910 | fd = open(TAGCACHE_STATEFILE, O_RDONLY); |
3913 | if (fd < 0) | 3911 | if (fd < 0) |
@@ -3932,7 +3930,7 @@ static bool tagcache_dumpload(void) | |||
3932 | /* Lets allocate real memory and load it */ | 3930 | /* Lets allocate real memory and load it */ |
3933 | handle = core_alloc_ex("tc ramcache", shdr.tc_stat.ramcache_allocated, &ops); | 3931 | handle = core_alloc_ex("tc ramcache", shdr.tc_stat.ramcache_allocated, &ops); |
3934 | ramcache_hdr = core_get_data(handle); | 3932 | ramcache_hdr = core_get_data(handle); |
3935 | moev_lock++; | 3933 | move_lock++; |
3936 | rc = read(fd, ramcache_hdr, shdr.tc_stat.ramcache_allocated); | 3934 | rc = read(fd, ramcache_hdr, shdr.tc_stat.ramcache_allocated); |
3937 | move_lock--; | 3935 | move_lock--; |
3938 | close(fd); | 3936 | close(fd); |