Underscore prefix is reserved for the compiler and standard library so
we should not use it for our helpers.
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
python/sanlock.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/python/sanlock.c b/python/sanlock.c
index 4155b51..c44fee7 100644
--- a/python/sanlock.c
+++ b/python/sanlock.c
@@ -267,11 +267,11 @@ set_error(PyObject* exception, const char* format, PyObject* obj)
PyErr_Format(exception, format, str_rep);
Py_XDECREF(rep);
}
static PyObject *
-__hosts_to_list(struct sanlk_host *hss, int hss_count)
+hosts_to_list(struct sanlk_host *hss, int hss_count)
{
int i;
PyObject *ls_list = NULL, *ls_entry = NULL;
/* prepare the dictionary holding the information */
@@ -1071,11 +1071,11 @@ py_get_hosts(PyObject *self __unused, PyObject *args, PyObject
*keywds)
if (rv < 0) {
set_sanlock_error(rv, "Sanlock get hosts failure");
goto finally;
}
- ls_list = __hosts_to_list(hss, hss_count);
+ ls_list = hosts_to_list(hss, hss_count);
finally:
Py_XDECREF(lockspace);
free(hss);
if (rv < 0)
@@ -1337,11 +1337,11 @@ py_read_resource_owners(PyObject *self __unused, PyObject *args,
PyObject *keywd
if (rv != 0) {
set_sanlock_error(rv, "Unable to read resource owners");
goto finally;
}
- ls_list = __hosts_to_list(hss, hss_count);
+ ls_list = hosts_to_list(hss, hss_count);
finally:
Py_XDECREF(lockspace);
Py_XDECREF(resource);
free(res);
--
2.17.2