Fix build and sign module initialization in python3 (RhBug:1064758)

- PyInit_foo() name needs to match the module name. Doh.
This commit is contained in:
Panu Matilainen 2014-02-13 12:54:41 +02:00
parent 37903d7572
commit 0073376965
2 changed files with 4 additions and 4 deletions

View File

@ -66,8 +66,8 @@ static struct PyModuleDef moduledef = {
NULL /* m_free */
};
PyObject * PyInit__rpm(void); /* XXX eliminate gcc warning */
PyObject * PyInit__rpm(void)
PyObject * PyInit__rpmb(void); /* XXX eliminate gcc warning */
PyObject * PyInit__rpmb(void)
{
PyObject *m;

View File

@ -66,8 +66,8 @@ static struct PyModuleDef moduledef = {
NULL /* m_free */
};
PyObject * PyInit__rpm(void); /* XXX eliminate gcc warning */
PyObject * PyInit__rpm(void)
PyObject * PyInit__rpms(void); /* XXX eliminate gcc warning */
PyObject * PyInit__rpms(void)
{
PyObject *m;