1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-04 00:59:13 +03:00

r26576: Allow the static module loading code to be used for the Python modules.

Simplify the way module initialization functions are handled.
(This used to be commit ba8be2dfc0)
This commit is contained in:
Jelmer Vernooij
2007-12-23 23:54:30 -06:00
committed by Stefan Metzmacher
parent 1ab5bcfb93
commit be33f4c611
28 changed files with 107 additions and 44 deletions

View File

@ -26,7 +26,7 @@ static PyObject *uuid_random(PyObject *self, PyObject *args)
struct GUID guid;
char *str;
if (!PyArg_ParseTuple(args, ""))
if (!PyArg_ParseTuple(args, (char *)""))
return NULL;
guid = GUID_random();
@ -51,7 +51,7 @@ PyDoc_STRVAR(param_doc, "UUID helper routines");
PyMODINIT_FUNC inituuid(void)
{
PyObject *mod = Py_InitModule3("uuid", methods, param_doc);
PyObject *mod = Py_InitModule3((char *)"uuid", methods, param_doc);
if (mod == NULL)
return;
}