Remove unnecessary (cmpfunc) casts from our type objects
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 28 Oct 2009 14:35:32 +0000 (16:35 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 28 Oct 2009 14:35:32 +0000 (16:35 +0200)
- cmpfunc is no more in Python 3 and casting NULL to anything makes
  little sense anyhow

python/rpmfd-py.c
python/rpmfi-py.c
python/rpmps-py.c

index 5c50a4f..acd8f72 100644 (file)
@@ -292,7 +292,7 @@ PyTypeObject rpmfd_Type = {
        0,                              /* tp_print */
        (getattrfunc)0,                 /* tp_getattr */
        (setattrfunc)0,                 /* tp_setattr */
-       (cmpfunc)0,                     /* tp_compare */
+       0,                              /* tp_compare */
        (reprfunc)0,                    /* tp_repr */
        0,                              /* tp_as_number */
        0,                              /* tp_as_sequence */
index c6d2ba4..5ac0c3a 100644 (file)
@@ -325,7 +325,7 @@ PyTypeObject rpmfi_Type = {
        0,                              /* tp_print */
        (getattrfunc)0,                 /* tp_getattr */
        (setattrfunc)0,                 /* tp_setattr */
-       (cmpfunc)0,                     /* tp_compare */
+       0,                              /* tp_compare */
        (reprfunc)0,                    /* tp_repr */
        0,                              /* tp_as_number */
        0,                              /* tp_as_sequence */
index ccea5d2..258ad59 100644 (file)
@@ -83,7 +83,7 @@ PyTypeObject rpmProblem_Type = {
        0,                              /* tp_print */
        (getattrfunc)0,                 /* tp_getattr */
        (setattrfunc)0,                 /* tp_setattr */
-       (cmpfunc)0,                     /* tp_compare */
+       0,                              /* tp_compare */
        (reprfunc)0,                    /* tp_repr */
        0,                              /* tp_as_number */
        0,                              /* tp_as_sequence */
@@ -238,7 +238,7 @@ PyTypeObject rpmps_Type = {
        0,                              /* tp_print */
        (getattrfunc)0,                 /* tp_getattr */
        (setattrfunc)0,                 /* tp_setattr */
-       (cmpfunc)0,                     /* tp_compare */
+       0,                      /* tp_compare */
        (reprfunc)0,                    /* tp_repr */
        0,                              /* tp_as_number */
        0,                              /* tp_as_sequence */