Remove unnecessary (cmpfunc) casts from our type objects

- cmpfunc is no more in Python 3 and casting NULL to anything makes
  little sense anyhow
This commit is contained in:
Panu Matilainen 2009-10-28 16:35:32 +02:00
parent 70bebfdd7e
commit 16f9d7f4dc
3 changed files with 4 additions and 4 deletions

View File

@ -292,7 +292,7 @@ PyTypeObject rpmfd_Type = {
0, /* tp_print */ 0, /* tp_print */
(getattrfunc)0, /* tp_getattr */ (getattrfunc)0, /* tp_getattr */
(setattrfunc)0, /* tp_setattr */ (setattrfunc)0, /* tp_setattr */
(cmpfunc)0, /* tp_compare */ 0, /* tp_compare */
(reprfunc)0, /* tp_repr */ (reprfunc)0, /* tp_repr */
0, /* tp_as_number */ 0, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */

View File

@ -325,7 +325,7 @@ PyTypeObject rpmfi_Type = {
0, /* tp_print */ 0, /* tp_print */
(getattrfunc)0, /* tp_getattr */ (getattrfunc)0, /* tp_getattr */
(setattrfunc)0, /* tp_setattr */ (setattrfunc)0, /* tp_setattr */
(cmpfunc)0, /* tp_compare */ 0, /* tp_compare */
(reprfunc)0, /* tp_repr */ (reprfunc)0, /* tp_repr */
0, /* tp_as_number */ 0, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */

View File

@ -83,7 +83,7 @@ PyTypeObject rpmProblem_Type = {
0, /* tp_print */ 0, /* tp_print */
(getattrfunc)0, /* tp_getattr */ (getattrfunc)0, /* tp_getattr */
(setattrfunc)0, /* tp_setattr */ (setattrfunc)0, /* tp_setattr */
(cmpfunc)0, /* tp_compare */ 0, /* tp_compare */
(reprfunc)0, /* tp_repr */ (reprfunc)0, /* tp_repr */
0, /* tp_as_number */ 0, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */
@ -238,7 +238,7 @@ PyTypeObject rpmps_Type = {
0, /* tp_print */ 0, /* tp_print */
(getattrfunc)0, /* tp_getattr */ (getattrfunc)0, /* tp_getattr */
(setattrfunc)0, /* tp_setattr */ (setattrfunc)0, /* tp_setattr */
(cmpfunc)0, /* tp_compare */ 0, /* tp_compare */
(reprfunc)0, /* tp_repr */ (reprfunc)0, /* tp_repr */
0, /* tp_as_number */ 0, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */