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
@@ -38,12 +38,12 @@ struct list_closure
static int
-count_level (const char *name, int delim)
+count_depth (const char *name, int delim)
{
- int level = 0;
+ int depth = 0;
while (*name)
if (*name++ == delim)
- level++;
- return level;
+ depth++;
+ return depth;
}
@@ -110,5 +110,5 @@ list_untagged_handler (mu_imap_t imap, mu_list_t resp, void *data)
{
rp->separator = 0;
- rp->level = 0;
+ rp->depth = 0;
}
else if (elt->type != imap_eltype_string)
@@ -117,5 +117,5 @@ list_untagged_handler (mu_imap_t imap, mu_list_t resp, void *data)
{
rp->separator = elt->v.string[0];
- rp->level = count_level (rp->name, rp->separator);
+ rp->depth = count_depth (rp->name, rp->separator);
}
if ((clos->error_code = mu_list_append (clos->retlist, rp)))

Return to:

Send suggestions and report system problems to the System administrator.