diff options
Diffstat (limited to 'libmailutils/mailbox/fsfolder.c')
-rw-r--r-- | libmailutils/mailbox/fsfolder.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libmailutils/mailbox/fsfolder.c b/libmailutils/mailbox/fsfolder.c index 553c9fddf..4afdbd6e9 100644 --- a/libmailutils/mailbox/fsfolder.c +++ b/libmailutils/mailbox/fsfolder.c @@ -291,19 +291,19 @@ best_match (mu_list_t records, char const *refname, } static int list_helper (struct mu_folder_scanner *scn, struct folder_scan_data *data, struct inode_list *ilist, - const char *dirname, size_t level) + const char *dirname, size_t depth) { DIR *dirp; struct dirent *dp; int stop = 0; - if (scn->max_level && level >= scn->max_level) + if (scn->max_depth && depth >= scn->max_depth) return 0; dirp = opendir (dirname); if (dirp == NULL) { mu_debug (MU_DEBCAT_FOLDER, MU_DEBUG_ERROR, @@ -374,13 +374,13 @@ list_helper (struct mu_folder_scanner *scn, if (f == MU_FOLDER_ATTRIBUTE_DIRECTORY) type = f; } else { resp->name = fname; - resp->level = level; + resp->depth = depth; resp->separator = '/'; resp->type = type; resp->format = rec; if (scn->enumfun) { @@ -418,23 +418,23 @@ list_helper (struct mu_folder_scanner *scn, struct inode_list idata; idata.inode = st.st_ino; idata.dev = st.st_dev; idata.next = ilist; stop = list_helper (scn, data, &idata, refname, - level + 1); + depth + 1); } } else if (S_ISDIR (st.st_mode)) { struct inode_list idata; idata.inode = st.st_ino; idata.dev = st.st_dev; idata.next = ilist; - stop = list_helper (scn, data, &idata, fname, level + 1); + stop = list_helper (scn, data, &idata, fname, depth + 1); } } } else { mu_debug (MU_DEBCAT_FOLDER, MU_DEBUG_ERROR, @@ -505,13 +505,13 @@ _fsfolder_lsub (mu_folder_t folder, const char *ref, const char *name, { free (resp); rc = ENOMEM; break; } resp->type = MU_FOLDER_ATTRIBUTE_FILE; - resp->level = 0; + resp->depth = 0; resp->separator = '/'; rc = mu_list_append (flist, resp); if (rc) { free (resp); break; |