summaryrefslogtreecommitdiffstats
path: root/rpmmodule
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-08 17:17:49 +0000
committerMatt Wilson <msw@redhat.com>2000-02-08 17:17:49 +0000
commitbbeecef02c4c41890d47b45c97582f3517ce8575 (patch)
treeefd3b9da913657d7f7d3aba7d28d10ff7c36435a /rpmmodule
parentebe045db6f555478c192b776c89d6df66170440f (diff)
downloadanaconda-bbeecef02c4c41890d47b45c97582f3517ce8575.tar.gz
anaconda-bbeecef02c4c41890d47b45c97582f3517ce8575.tar.xz
anaconda-bbeecef02c4c41890d47b45c97582f3517ce8575.zip
nuke const warning
Diffstat (limited to 'rpmmodule')
-rw-r--r--rpmmodule/rpmmodule.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c
index 52362f656..888adc9f2 100644
--- a/rpmmodule/rpmmodule.c
+++ b/rpmmodule/rpmmodule.c
@@ -218,7 +218,8 @@ extern int _rpmio_debug;
void initrpm(void) {
PyObject * m, * d, * tag, * dict;
int i;
- const struct headerSprintfExtension * ext = rpmHeaderFormats;
+ const struct headerSprintfExtension * extensions = rpmHeaderFormats;
+ struct headerSprintfExtension * ext;
/* _rpmio_debug = -1; */
rpmReadConfigFiles(NULL, NULL);
@@ -238,12 +239,13 @@ void initrpm(void) {
PyDict_SetItem(dict, tag, PyString_FromString(rpmTagTable[i].name + 7));
}
- while (ext->name) {
- if (ext->type == HEADER_EXT_TAG) {
- PyDict_SetItemString(d, ext->name, PyCObject_FromVoidPtr(ext, NULL));
+ while (extensions->name) {
+ if (extensions->type == HEADER_EXT_TAG) {
+ (const struct headerSprintfExtension *) ext = extensions;
+ PyDict_SetItemString(d, extensions->name, PyCObject_FromVoidPtr(ext, NULL));
PyDict_SetItem(dict, tag, PyString_FromString(ext->name + 7));
}
- ext++;
+ extensions++;
}
PyDict_SetItemString(d, "tagnames", dict);