summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
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/tagcache.c
parent41b04e55eb41b30178cf1e5b9611ac9f93d3e141 (diff)
downloadrockbox-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/tagcache.c')
-rw-r--r--apps/tagcache.c6
1 files changed, 2 insertions, 4 deletions
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)
3905static bool tagcache_dumpload(void) 3905static 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);