From: Panu Matilainen Date: Tue, 10 Jul 2007 12:25:32 +0000 (+0300) Subject: More python method pointer type fixes. X-Git-Tag: rpm-4.6.0-rc1~2301 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=220c0fd514e9e1d4b38a77c22df8679ad52421ab;p=platform%2Fupstream%2Frpm.git More python method pointer type fixes. --- diff --git a/python/header-py.c b/python/header-py.c index 67d34eb..470cd3a 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -641,7 +641,7 @@ static PyObject * hdr_subscript(hdrObject * s, PyObject * item) */ /*@unchecked@*/ /*@observer@*/ static PyMappingMethods hdr_as_mapping = { - (inquiry) 0, /* mp_length */ + (lenfunc) 0, /* mp_length */ (binaryfunc) hdr_subscript, /* mp_subscript */ (objobjargproc)0, /* mp_ass_subscript */ }; diff --git a/python/rpmdb-py.c b/python/rpmdb-py.c index 60637d8..b21c94e 100644 --- a/python/rpmdb-py.c +++ b/python/rpmdb-py.c @@ -196,7 +196,7 @@ rpmdb_subscript(rpmdbObject * s, PyObject * key) */ /*@unchecked@*/ /*@observer@*/ static PyMappingMethods rpmdb_as_mapping = { - (inquiry) rpmdb_length, /* mp_length */ + (lenfunc) rpmdb_length, /* mp_length */ (binaryfunc) rpmdb_subscript, /* mp_subscript */ (objobjargproc)0, /* mp_ass_subscript */ }; diff --git a/python/rpmds-py.c b/python/rpmds-py.c index 9e88499..81afab3 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -506,7 +506,7 @@ rpmds_subscript(rpmdsObject * s, PyObject * key) } static PyMappingMethods rpmds_as_mapping = { - (inquiry) rpmds_length, /* mp_length */ + (lenfunc) rpmds_length, /* mp_length */ (binaryfunc) rpmds_subscript, /* mp_subscript */ (objobjargproc)0, /* mp_ass_subscript */ }; diff --git a/python/rpmfi-py.c b/python/rpmfi-py.c index f0cb94f..7695be6 100644 --- a/python/rpmfi-py.c +++ b/python/rpmfi-py.c @@ -454,7 +454,7 @@ rpmfi_subscript(rpmfiObject * s, PyObject * key) /*@unchecked@*/ /*@observer@*/ static PyMappingMethods rpmfi_as_mapping = { - (inquiry) rpmfi_length, /* mp_length */ + (lenfunc) rpmfi_length, /* mp_length */ (binaryfunc) rpmfi_subscript, /* mp_subscript */ (objobjargproc)0, /* mp_ass_subscript */ }; diff --git a/python/rpmps-py.c b/python/rpmps-py.c index f172124..2d3eee5 100644 --- a/python/rpmps-py.c +++ b/python/rpmps-py.c @@ -232,7 +232,7 @@ fprintf(stderr, "*** rpmps_ass_sub(%p[%s],%p[%s],%p[%s]) ps %p[%d:%d:%d]\n", s, } static PyMappingMethods rpmps_as_mapping = { - (inquiry) rpmps_length, /* mp_length */ + (lenfunc) rpmps_length, /* mp_length */ (binaryfunc) rpmps_subscript, /* mp_subscript */ (objobjargproc) rpmps_ass_sub, /* mp_ass_subscript */ };