rrdtool/rrdtool-1.2.15-initrrdtool.patch
2006-08-01 19:43:49 +00:00

31 lines
933 B
Diff

--- rrdtool-1.2.15/bindings/python/rrdtoolmodule.c.initrrdtool 2006-07-14 08:11:26.000000000 -0400
+++ rrdtool-1.2.15/bindings/python/rrdtoolmodule.c 2006-08-01 15:21:49.000000000 -0400
@@ -48,8 +48,8 @@
extern int opterr;
/* forward declaration to keep compiler happy */
-/*void initrrdtool(void);*/
-void initrrdtoolmodule(void);
+void initrrdtool(void);
+/*void initrrdtoolmodule(void);*/
static int
create_args(char *command, PyObject *args, int *argc, char ***argv)
@@ -518,13 +518,13 @@
/* Initialization function for the module */
void
-/*initrrdtool(void)*/
-initrrdtoolmodule(void)
+initrrdtool(void)
+/*initrrdtoolmodule(void)*/
{
PyObject *m, *d, *t;
/* Create the module and add the functions */
- m = Py_InitModule("rrdtoolmodule", _rrdtool_methods);
+ m = Py_InitModule("rrdtool", _rrdtool_methods);
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);