Fix couple of recently introduced compiler warnings
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 1 Oct 2009 11:06:41 +0000 (14:06 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 1 Oct 2009 11:17:11 +0000 (14:17 +0300)
python/header-py.c
python/rpmtd-py.c

index cf77431..31d5edd 100644 (file)
@@ -497,7 +497,7 @@ PyTypeObject hdr_Type = {
        0,                              /* tp_richcompare */
        0,                              /* tp_weaklistoffset */
        PyObject_SelfIter,              /* tp_iter */
-       hdr_iternext,                   /* tp_iternext */
+       (iternextfunc)hdr_iternext,     /* tp_iternext */
        hdr_methods,                    /* tp_methods */
        0,                              /* tp_members */
        0,                              /* tp_getset */
index 51f8744..1b55e0c 100644 (file)
@@ -165,7 +165,7 @@ PyTypeObject rpmtd_Type = {
        PyObject_SelfIter,              /* tp_iter */
        (iternextfunc)rpmtd_iternext,   /* tp_iternext */
        0,                              /* tp_methods */
-       &rpmtd_members,                 /* tp_members */
+       rpmtd_members,                  /* tp_members */
        0,                              /* tp_getset */
        0,                              /* tp_base */
        0,                              /* tp_dict */