diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 6 |
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) | |||
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); |