Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleš Matěj <amatej@redhat.com>2022-03-17 16:38:56 +0300
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>2022-03-29 07:56:13 +0300
commitd942a338b2f50f3632d7c02abdeb36e186e91999 (patch)
tree09ff4fefb9944c2114aba2d3189f576be4703d31
parentdc4542488c09f4d51f04f79ea146d6d79085bbc1 (diff)
Fix signature of `pkg_iterator_next_package` to prevent a warning
Signature https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_iternext
-rw-r--r--src/python/xml_parser-py.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/xml_parser-py.c b/src/python/xml_parser-py.c
index 1f9d981..b575feb 100644
--- a/src/python/xml_parser-py.c
+++ b/src/python/xml_parser-py.c
@@ -859,8 +859,9 @@ pkg_iterator_dealloc(_PkgIteratorObject *self)
}
static PyObject *
-pkg_iterator_next_package(_PkgIteratorObject *self, G_GNUC_UNUSED void *nothing)
+pkg_iterator_next_package(PyObject *PyObject_self)
{
+ _PkgIteratorObject *self = (_PkgIteratorObject *) PyObject_self;
cr_Package *pkg;
GError *tmp_err = NULL;