summaryrefslogtreecommitdiff
path: root/libproto/imap/genlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'libproto/imap/genlist.c')
-rw-r--r--libproto/imap/genlist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libproto/imap/genlist.c b/libproto/imap/genlist.c
index 1e2de88d8..13352b6bb 100644
--- a/libproto/imap/genlist.c
+++ b/libproto/imap/genlist.c
@@ -37,14 +37,14 @@ struct list_closure
37}; 37};
38 38
39static int 39static int
40count_level (const char *name, int delim) 40count_depth (const char *name, int delim)
41{ 41{
42 int level = 0; 42 int depth = 0;
43 43
44 while (*name) 44 while (*name)
45 if (*name++ == delim) 45 if (*name++ == delim)
46 level++; 46 depth++;
47 return level; 47 return depth;
48} 48}
49 49
50static int 50static int
@@ -109,14 +109,14 @@ list_untagged_handler (mu_imap_t imap, mu_list_t resp, void *data)
109 if (_mu_imap_list_element_is_nil (elt)) 109 if (_mu_imap_list_element_is_nil (elt))
110 { 110 {
111 rp->separator = 0; 111 rp->separator = 0;
112 rp->level = 0; 112 rp->depth = 0;
113 } 113 }
114 else if (elt->type != imap_eltype_string) 114 else if (elt->type != imap_eltype_string)
115 return; 115 return;
116 else 116 else
117 { 117 {
118 rp->separator = elt->v.string[0]; 118 rp->separator = elt->v.string[0];
119 rp->level = count_level (rp->name, rp->separator); 119 rp->depth = count_depth (rp->name, rp->separator);
120 } 120 }
121 if ((clos->error_code = mu_list_append (clos->retlist, rp))) 121 if ((clos->error_code = mu_list_append (clos->retlist, rp)))
122 mu_list_response_free (rp); 122 mu_list_response_free (rp);

Return to:

Send suggestions and report system problems to the System administrator.