Fix bunch of compiler warnings from python bindings (method pointer types)
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jul 2007 12:19:04 +0000 (15:19 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jul 2007 12:19:04 +0000 (15:19 +0300)
python/rpmds-py.c
python/rpmfd-py.c
python/rpmfi-py.c
python/rpmfts-py.c
python/rpmps-py.c
python/rpmrc-py.c
python/rpmts-py.c

index 269c342..1598fee 100644 (file)
@@ -638,7 +638,7 @@ PyTypeObject rpmds_Type = {
        (initproc) rpmds_init,          /* tp_init */
        (allocfunc) rpmds_alloc,        /* tp_alloc */
        (newfunc) rpmds_new,            /* tp_new */
-       rpmds_free,                     /* tp_free */
+       (freefunc) rpmds_free,          /* tp_free */
        0,                              /* tp_is_gc */
 #endif
 };
index 5681494..1f2f6c5 100644 (file)
@@ -323,7 +323,7 @@ PyTypeObject rpmfd_Type = {
        (initproc) rpmfd_init,          /* tp_init */
        (allocfunc) rpmfd_alloc,        /* tp_alloc */
        (newfunc) rpmfd_new,            /* tp_new */
-       rpmfd_free,                     /* tp_free */
+       (freefunc) rpmfd_free,          /* tp_free */
        0,                              /* tp_is_gc */
 #endif
 };
index 6055bda..f0cb94f 100644 (file)
@@ -586,7 +586,7 @@ PyTypeObject rpmfi_Type = {
        (initproc) rpmfi_init,          /* tp_init */
        (allocfunc) rpmfi_alloc,        /* tp_alloc */
        (newfunc) rpmfi_new,            /* tp_new */
-       rpmfi_free,                     /* tp_free */
+       (freefunc) rpmfi_free,          /* tp_free */
        0,                              /* tp_is_gc */
 #endif
 };
index ea3f423..bb35943 100644 (file)
@@ -572,9 +572,9 @@ PyTypeObject rpmfts_Type = {
        0,                              /* tp_descr_set */
        offsetof(rpmftsObject, md_dict),/* tp_dictoffset */
        (initproc) rpmfts_init,         /* tp_init */
-       rpmfts_alloc,                   /* tp_alloc */
-       rpmfts_new,                     /* tp_new */
-       rpmfts_free,                    /* tp_free */
+       (allocfunc) rpmfts_alloc,       /* tp_alloc */
+       (newfunc) rpmfts_new,           /* tp_new */
+       (freefunc) rpmfts_free,         /* tp_free */
        0,                              /* tp_is_gc */
 };
 /*@=fullinitblock@*/
index 52fd7d6..f172124 100644 (file)
@@ -350,7 +350,7 @@ PyTypeObject rpmps_Type = {
        (initproc) rpmps_init,          /* tp_init */
        (allocfunc) rpmps_alloc,        /* tp_alloc */
        (newfunc) rpmps_new,            /* tp_new */
-       rpmps_free,                     /* tp_free */
+       (freefunc) rpmps_free,          /* tp_free */
        0,                              /* tp_is_gc */
 #endif
 };
index 97b9ac0..adcbe9a 100644 (file)
@@ -371,10 +371,10 @@ PyTypeObject rpmrc_Type = {
        0,                              /* tp_descr_get */
        0,                              /* tp_descr_set */
        0,                              /* tp_dictoffset */
-       rpmrc_init,                     /* tp_init */
-       rpmrc_alloc,                    /* tp_alloc */
-       rpmrc_new,                      /* tp_new */
-       rpmrc_free,                     /* tp_free */
+       (initproc) rpmrc_init,          /* tp_init */
+       (allocfunc) rpmrc_alloc,        /* tp_alloc */
+       (newfunc) rpmrc_new,            /* tp_new */
+       (freefunc) rpmrc_free,          /* tp_free */
        0,                              /* tp_is_gc */
 };
 #else
index 7b395e7..5834d90 100644 (file)
@@ -1678,7 +1678,7 @@ PyTypeObject rpmts_Type = {
        (initproc) rpmts_init,          /* tp_init */
        (allocfunc) rpmts_alloc,        /* tp_alloc */
        (newfunc) rpmts_new,            /* tp_new */
-       rpmts_free,                     /* tp_free */
+       (freefunc) rpmts_free,          /* tp_free */
        0,                              /* tp_is_gc */
 #endif
 };