summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2005-03-07 14:00:18 +0000
committerjbj <devnull@localhost>2005-03-07 14:00:18 +0000
commitffea31644e113d557c4ec012fc3117547074f3f4 (patch)
tree6049176d041c39c42af3e021d6aad2b29a6dc5af /python
parent9dc1b3bb80c37d45d9235002b084be6743f1d774 (diff)
downloadrpm-ffea31644e113d557c4ec012fc3117547074f3f4.tar.gz
rpm-ffea31644e113d557c4ec012fc3117547074f3f4.tar.bz2
rpm-ffea31644e113d557c4ec012fc3117547074f3f4.zip
Casts on lvalues are no longer permitted by gcc4.0.
CVS patchset: 7788 CVS date: 2005/03/07 14:00:18
Diffstat (limited to 'python')
-rw-r--r--python/header-py.c4
-rw-r--r--python/rpmmodule.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/python/header-py.c b/python/header-py.c
index d07fbc29b..294af422d 100644
--- a/python/header-py.c
+++ b/python/header-py.c
@@ -476,8 +476,8 @@ static PyObject * hdr_subscript(hdrObject * s, PyObject * item)
str = PyString_AsString(item);
while (extensions->name) {
if (extensions->type == HEADER_EXT_TAG
- && !xstrcasecmp(extensions->name + 7, str)) {
- (const struct headerSprintfExtension *) ext = extensions;
+ && !xstrcasecmp(extensions->name + 7, str)) {
+ ext = extensions;
}
extensions++;
}
diff --git a/python/rpmmodule.c b/python/rpmmodule.c
index 44e134e23..41e14c76f 100644
--- a/python/rpmmodule.c
+++ b/python/rpmmodule.c
@@ -293,7 +293,7 @@ void init_rpm(void)
while (extensions->name) {
if (extensions->type == HEADER_EXT_TAG) {
- (const struct headerSprintfExtension *) ext = extensions;
+ ext = extensions;
PyDict_SetItemString(d, (char *) extensions->name, o=PyCObject_FromVoidPtr(ext, NULL));
Py_DECREF(o);
PyDict_SetItem(dict, tag, o=PyString_FromString(ext->name + 7));