diff --git a/src/statcache.c b/src/statcache.c
index 22737f7fc9de97103fd1a9c1f1975b61e5026465..d9e801f32b8b299ab78021e10bdb5ada292bf3ed 100644 (file)
--- a/src/statcache.c
+++ b/src/statcache.c
struct dir_entry {
struct dir_entry *next;
- int is_dir;
char filename[];
};
free_dir_entries(de);
}
-void dir_cache_add(const char *fn, const char *subdir, int is_dir) {
+void dir_cache_add(const char *fn, const char *subdir) {
uint32_t h;
struct cache_entry *ce;
assert(cache);
assert(n);
strcpy(n->filename, subdir);
- n->is_dir = is_dir;
n->next = ce->dir_info.entries2;
ce->dir_info.entries2 = n;
pthread_mutex_unlock(&dir_cache_mutex);
}
-int dir_cache_enumerate(const char *fn, void (*f) (const char*fn, const char *subdir, int is_dir, void *user), void *user) {
+int dir_cache_enumerate(const char *fn, void (*f) (const char*fn, const char *subdir, void *user), void *user) {
uint32_t h;
struct cache_entry *ce;
struct dir_entry *de = NULL;
@@ -302,7 +300,7 @@ int dir_cache_enumerate(const char *fn, void (*f) (const char*fn, const char *su
pthread_mutex_unlock(&dir_cache_mutex);
for (de = ce->dir_info.entries; de; de = de->next)
- f(fn, de->filename, de->is_dir, user);
+ f(fn, de->filename, user);
pthread_mutex_lock(&dir_cache_mutex);
ce->dir_info.in_use = 0;