summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-07-10 15:19:04 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-07-10 15:19:04 +0300
commitf91bb73993794e573ecc234106feca12739a4cea (patch)
treef329f456e327e73846e26f781378e92aa03a2676
parent075560d864115ae7aed0c461040a1e151ae05725 (diff)
downloadlibrpm-tizen-f91bb73993794e573ecc234106feca12739a4cea.tar.gz
librpm-tizen-f91bb73993794e573ecc234106feca12739a4cea.tar.bz2
librpm-tizen-f91bb73993794e573ecc234106feca12739a4cea.zip
Fix bunch of compiler warnings from python bindings (method pointer types)
-rw-r--r--python/rpmds-py.c2
-rw-r--r--python/rpmfd-py.c2
-rw-r--r--python/rpmfi-py.c2
-rw-r--r--python/rpmfts-py.c6
-rw-r--r--python/rpmps-py.c2
-rw-r--r--python/rpmrc-py.c8
-rw-r--r--python/rpmts-py.c2
7 files changed, 12 insertions, 12 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c
index 269c3424d..1598feef3 100644
--- a/python/rpmds-py.c
+++ b/python/rpmds-py.c
@@ -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
};
diff --git a/python/rpmfd-py.c b/python/rpmfd-py.c
index 56814946c..1f2f6c5ef 100644
--- a/python/rpmfd-py.c
+++ b/python/rpmfd-py.c
@@ -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
};
diff --git a/python/rpmfi-py.c b/python/rpmfi-py.c
index 6055bdacb..f0cb94f4a 100644
--- a/python/rpmfi-py.c
+++ b/python/rpmfi-py.c
@@ -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
};
diff --git a/python/rpmfts-py.c b/python/rpmfts-py.c
index ea3f4236f..bb3594395 100644
--- a/python/rpmfts-py.c
+++ b/python/rpmfts-py.c
@@ -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@*/
diff --git a/python/rpmps-py.c b/python/rpmps-py.c
index 52fd7d655..f1721249f 100644
--- a/python/rpmps-py.c
+++ b/python/rpmps-py.c
@@ -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
};
diff --git a/python/rpmrc-py.c b/python/rpmrc-py.c
index 97b9ac0b4..adcbe9a56 100644
--- a/python/rpmrc-py.c
+++ b/python/rpmrc-py.c
@@ -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
diff --git a/python/rpmts-py.c b/python/rpmts-py.c
index 7b395e755..5834d90cb 100644
--- a/python/rpmts-py.c
+++ b/python/rpmts-py.c
@@ -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
};