More python method pointer type fixes.
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jul 2007 12:25:32 +0000 (15:25 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jul 2007 12:25:32 +0000 (15:25 +0300)
python/header-py.c
python/rpmdb-py.c
python/rpmds-py.c
python/rpmfi-py.c
python/rpmps-py.c

index 67d34eb..470cd3a 100644 (file)
@@ -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 */
 };
index 60637d8..b21c94e 100644 (file)
@@ -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 */
 };
index 9e88499..81afab3 100644 (file)
@@ -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 */
 };
index f0cb94f..7695be6 100644 (file)
@@ -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 */
 };
index f172124..2d3eee5 100644 (file)
@@ -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 */
 };