diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-03-26 21:41:09 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-03-26 21:41:09 +0200 |
commit | 60c5545ba8a5c9f4038b5587c96c19b80f538831 (patch) | |
tree | 13ecd0d40286e43a37934b0ddd07c1e898fb4d75 /libproto/imap/genlist.c | |
parent | 5b69ce81ec29afeea0e67bd8b0f0b193a7b0c022 (diff) | |
download | mailutils-60c5545ba8a5c9f4038b5587c96c19b80f538831.tar.gz mailutils-60c5545ba8a5c9f4038b5587c96c19b80f538831.tar.bz2 |
Consistently use the term 'depth' when referring to directory nesting depth
* include/mailutils/folder.h (mu_list_response): Rename 'level' to
'depth'.
All uses updated.
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 @@ -37,14 +37,14 @@ 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; } static int @@ -109,14 +109,14 @@ list_untagged_handler (mu_imap_t imap, mu_list_t resp, void *data) if (_mu_imap_list_element_is_nil (elt)) { rp->separator = 0; - rp->level = 0; + rp->depth = 0; } else if (elt->type != imap_eltype_string) return; else { 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))) mu_list_response_free (rp); |