summaryrefslogtreecommitdiff
path: root/python/2/libmu_py/folder.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-03-26 21:41:09 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-03-26 21:41:09 +0200
commit60c5545ba8a5c9f4038b5587c96c19b80f538831 (patch)
tree13ecd0d40286e43a37934b0ddd07c1e898fb4d75 /python/2/libmu_py/folder.c
parent5b69ce81ec29afeea0e67bd8b0f0b193a7b0c022 (diff)
downloadmailutils-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 'python/2/libmu_py/folder.c')
-rw-r--r--python/2/libmu_py/folder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/2/libmu_py/folder.c b/python/2/libmu_py/folder.c
index cf1ae6901..20b731f1b 100644
--- a/python/2/libmu_py/folder.c
+++ b/python/2/libmu_py/folder.c
@@ -203,21 +203,21 @@ static PyObject *
api_folder_list (PyObject *self, PyObject *args)
{
int status = 0;
- Py_ssize_t max_level = 0;
+ Py_ssize_t max_depth = 0;
char *dirname, *pattern;
PyFolder *py_folder;
PyObject *py_list;
mu_list_t c_list = NULL;
if (!PyArg_ParseTuple (args, "O!zs|n", &PyFolderType, &py_folder,
- &dirname, &pattern, &max_level))
+ &dirname, &pattern, &max_depth))
return NULL;
- if (max_level < 0)
+ if (max_depth < 0)
{
PyErr_SetString (PyExc_RuntimeError, "max level out of range");
return NULL;
}
- status = mu_folder_list (py_folder->folder, dirname, pattern, max_level,
+ status = mu_folder_list (py_folder->folder, dirname, pattern, max_depth,
&c_list);
if (c_list)

Return to:

Send suggestions and report system problems to the System administrator.