From 16f9d7f4dcce8edc6458cd94ee0c7afda2c5dece Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 28 Oct 2009 16:35:32 +0200 Subject: [PATCH] Remove unnecessary (cmpfunc) casts from our type objects - cmpfunc is no more in Python 3 and casting NULL to anything makes little sense anyhow --- python/rpmfd-py.c | 2 +- python/rpmfi-py.c | 2 +- python/rpmps-py.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/rpmfd-py.c b/python/rpmfd-py.c index 5c50a4f..acd8f72 100644 --- a/python/rpmfd-py.c +++ b/python/rpmfd-py.c @@ -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 */ diff --git a/python/rpmfi-py.c b/python/rpmfi-py.c index c6d2ba4..5ac0c3a 100644 --- a/python/rpmfi-py.c +++ b/python/rpmfi-py.c @@ -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 */ diff --git a/python/rpmps-py.c b/python/rpmps-py.c index ccea5d2..258ad59 100644 --- a/python/rpmps-py.c +++ b/python/rpmps-py.c @@ -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 */ -- 2.7.4