diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 6885584a17..e361a06e72 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -364,7 +364,7 @@ static bool do_timed_yield(void) | |||
364 | 364 | ||
365 | #if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE) | 365 | #if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE) |
366 | static long find_entry_ram(const char *filename, | 366 | static long find_entry_ram(const char *filename, |
367 | const struct dirent *dc) | 367 | const struct dircache_entry *dc) |
368 | { | 368 | { |
369 | static long last_pos = 0; | 369 | static long last_pos = 0; |
370 | int i; | 370 | int i; |
@@ -697,7 +697,7 @@ static bool retrieve(struct tagcache_search *tcs, struct index_entry *idx, | |||
697 | if (tag == tag_filename && (idx->flag & FLAG_DIRCACHE) | 697 | if (tag == tag_filename && (idx->flag & FLAG_DIRCACHE) |
698 | && is_dircache_intact()) | 698 | && is_dircache_intact()) |
699 | { | 699 | { |
700 | dircache_copy_path((struct dirent *)seek, | 700 | dircache_copy_path((struct dircache_entry *)seek, |
701 | buf, size); | 701 | buf, size); |
702 | return true; | 702 | return true; |
703 | } | 703 | } |
@@ -1392,7 +1392,7 @@ static bool get_next(struct tagcache_search *tcs) | |||
1392 | if (tcs->type == tag_filename && (flag & FLAG_DIRCACHE) | 1392 | if (tcs->type == tag_filename && (flag & FLAG_DIRCACHE) |
1393 | && is_dircache_intact()) | 1393 | && is_dircache_intact()) |
1394 | { | 1394 | { |
1395 | dircache_copy_path((struct dirent *)tcs->position, | 1395 | dircache_copy_path((struct dircache_entry *)tcs->position, |
1396 | buf, sizeof buf); | 1396 | buf, sizeof buf); |
1397 | tcs->result = buf; | 1397 | tcs->result = buf; |
1398 | tcs->result_len = strlen(buf) + 1; | 1398 | tcs->result_len = strlen(buf) + 1; |
@@ -1671,7 +1671,7 @@ static int check_if_empty(char **tag) | |||
1671 | static void __attribute__ ((noinline)) add_tagcache(char *path, | 1671 | static void __attribute__ ((noinline)) add_tagcache(char *path, |
1672 | unsigned long mtime | 1672 | unsigned long mtime |
1673 | #if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE) | 1673 | #if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE) |
1674 | ,const struct dirent *dc | 1674 | ,const struct dircache_entry *dc |
1675 | #endif | 1675 | #endif |
1676 | ) | 1676 | ) |
1677 | { | 1677 | { |
@@ -3942,7 +3942,7 @@ static bool load_tagcache(void) | |||
3942 | if (tag == tag_filename) | 3942 | if (tag == tag_filename) |
3943 | { | 3943 | { |
3944 | # ifdef HAVE_DIRCACHE | 3944 | # ifdef HAVE_DIRCACHE |
3945 | const struct dirent *dc; | 3945 | const struct dircache_entry *dc; |
3946 | # endif | 3946 | # endif |
3947 | 3947 | ||
3948 | // FIXME: This is wrong! | 3948 | // FIXME: This is wrong! |