summaryrefslogtreecommitdiff
path: root/libmailutils/tests/fsfolder.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmailutils/tests/fsfolder.c')
-rw-r--r--libmailutils/tests/fsfolder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmailutils/tests/fsfolder.c b/libmailutils/tests/fsfolder.c
index 5a4d9df7d..e6c45b7f0 100644
--- a/libmailutils/tests/fsfolder.c
+++ b/libmailutils/tests/fsfolder.c
@@ -44,9 +44,9 @@ compare_response (void const *a, void const *b)
44 struct mu_list_response const *ra = a; 44 struct mu_list_response const *ra = a;
45 struct mu_list_response const *rb = b; 45 struct mu_list_response const *rb = b;
46 46
47 if (ra->level < rb->level) 47 if (ra->depth < rb->depth)
48 return -1; 48 return -1;
49 if (ra->level > rb->level) 49 if (ra->depth > rb->depth)
50 return 1; 50 return 1;
51 return strcmp (ra->name, rb->name); 51 return strcmp (ra->name, rb->name);
52} 52}
@@ -60,7 +60,7 @@ _print_list_entry (void *item, void *data)
60 (resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) ? 'd' : '-', 60 (resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) ? 'd' : '-',
61 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-', 61 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-',
62 resp->separator ? resp->separator : ' ', 62 resp->separator ? resp->separator : ' ',
63 resp->level, 63 resp->depth,
64 resp->name + len); 64 resp->name + len);
65 return 0; 65 return 0;
66} 66}
@@ -173,7 +173,7 @@ com_scan (int argc, char **argv, mu_assoc_t options, void *env)
173 { 173 {
174 char *p; 174 char *p;
175 errno = 0; 175 errno = 0;
176 scn.max_level = strtoul (s, &p, 10); 176 scn.max_depth = strtoul (s, &p, 10);
177 if (errno || *p) 177 if (errno || *p)
178 { 178 {
179 mu_error ("-maxdepth=%s: invalid depth", s); 179 mu_error ("-maxdepth=%s: invalid depth", s);

Return to:

Send suggestions and report system problems to the System administrator.