VERSION: Bump version number up to 4.0.4.
[samba.git] / source4 / scripting / python / uuidmodule.c
index cd9a1cb4d52f29ee5c5cb05298e9dd2b07750045..3bfe0162cacefd13a00a8a5df28ed09469443e0a 100644 (file)
@@ -17,8 +17,8 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "includes.h"
 #include <Python.h>
+#include "includes.h"
 #include "librpc/ndr/libndr.h"
 
 static PyObject *uuid_random(PyObject *self, PyObject *args)
@@ -27,7 +27,7 @@ static PyObject *uuid_random(PyObject *self, PyObject *args)
        PyObject *pyobj;
        char *str;
 
-       if (!PyArg_ParseTuple(args, (char *)""))
+       if (!PyArg_ParseTuple(args, ""))
                return NULL;
 
        guid = GUID_random();
@@ -46,13 +46,13 @@ static PyObject *uuid_random(PyObject *self, PyObject *args)
 }
 
 static PyMethodDef methods[] = {
-       { "random", (PyCFunction)uuid_random, METH_VARARGS, NULL},
+       { "uuid4", (PyCFunction)uuid_random, METH_VARARGS, NULL},
        { NULL, NULL }
 };
 
 void inituuid(void)
 {
-       PyObject *mod = Py_InitModule3((char *)"uuid", methods, "UUID helper routines");
+       PyObject *mod = Py_InitModule3("uuid", methods, "UUID helper routines");
        if (mod == NULL)
                return;
 }