diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-28 16:35:32 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-28 16:35:32 +0200 |
commit | 16f9d7f4dcce8edc6458cd94ee0c7afda2c5dece (patch) | |
tree | c864c9b4e43f76390065851b3c523cbb315e6693 | |
parent | 70bebfdd7eab41d7e0aecf569692aac113958a3a (diff) | |
download | librpm-tizen-16f9d7f4dcce8edc6458cd94ee0c7afda2c5dece.tar.gz librpm-tizen-16f9d7f4dcce8edc6458cd94ee0c7afda2c5dece.tar.bz2 librpm-tizen-16f9d7f4dcce8edc6458cd94ee0c7afda2c5dece.zip |
Remove unnecessary (cmpfunc) casts from our type objects
- cmpfunc is no more in Python 3 and casting NULL to anything makes
little sense anyhow
-rw-r--r-- | python/rpmfd-py.c | 2 | ||||
-rw-r--r-- | python/rpmfi-py.c | 2 | ||||
-rw-r--r-- | 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 5c50a4f63..acd8f7279 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 c6d2ba4a4..5ac0c3a09 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 ccea5d221..258ad59e4 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 */ |