--- rpm-4.4.1/python/header-py.c.gcc4	2005-03-01 11:34:03.676689554 -0500
+++ rpm-4.4.1/python/header-py.c	2005-03-01 11:34:10.196499670 -0500
@@ -477,7 +477,7 @@
 	while (extensions->name) {
 	    if (extensions->type == HEADER_EXT_TAG
 		&& !xstrcasecmp(extensions->name + 7, str)) {
-		(const struct headerSprintfExtension *) ext = extensions;
+		ext = extensions;
 	    }
 	    extensions++;
 	}
--- rpm-4.4.1/python/rpmmodule.c.gcc4	2005-03-01 11:31:55.949052540 -0500
+++ rpm-4.4.1/python/rpmmodule.c	2005-03-01 11:32:53.103593745 -0500
@@ -293,7 +293,7 @@
 
     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));
