This is an automated email from the git hooks/post-receive script.
nsoffer pushed a commit to branch master in repository sanlock.
commit de6df0eda3644a9f5da50c9b025c469269d2fe1b Author: Nir Soffer nsoffer@redhat.com AuthorDate: Fri Jun 14 21:27:46 2019 +0300
python: Rename __hosts_to_list to hosts_to_list
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@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 @@ -269,7 +269,7 @@ set_error(PyObject* exception, const char* format, PyObject* obj) }
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; @@ -1073,7 +1073,7 @@ py_get_hosts(PyObject *self __unused, PyObject *args, PyObject *keywds) goto finally; }
- ls_list = __hosts_to_list(hss, hss_count); + ls_list = hosts_to_list(hss, hss_count);
finally: Py_XDECREF(lockspace); @@ -1339,7 +1339,7 @@ py_read_resource_owners(PyObject *self __unused, PyObject *args, PyObject *keywd goto finally; }
- ls_list = __hosts_to_list(hss, hss_count); + ls_list = hosts_to_list(hss, hss_count);
finally: Py_XDECREF(lockspace);
sanlock-devel@lists.fedorahosted.org