From 220c0fd514e9e1d4b38a77c22df8679ad52421ab Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 10 Jul 2007 15:25:32 +0300 Subject: [PATCH] More python method pointer type fixes. --- python/header-py.c | 2 +- python/rpmdb-py.c | 2 +- python/rpmds-py.c | 2 +- python/rpmfi-py.c | 2 +- python/rpmps-py.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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 */ }; -- 2.7.4