diff options
Diffstat (limited to 'libproto/imap/genlist.c')
-rw-r--r-- | libproto/imap/genlist.c | 12 |
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 @@ -39,5 +39,5 @@ 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; @@ -45,4 +45,4 @@ count_level (const char *name, int delim) if (*name++ == delim) - level++; - return level; + depth++; + return depth; } @@ -111,3 +111,3 @@ list_untagged_handler (mu_imap_t imap, mu_list_t resp, void *data) rp->separator = 0; - rp->level = 0; + rp->depth = 0; } @@ -118,3 +118,3 @@ 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); } |