summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authormsw <devnull@localhost>2000-02-08 20:18:38 +0000
committermsw <devnull@localhost>2000-02-08 20:18:38 +0000
commit967484b1df58ed3870039547f1167350314dc9d1 (patch)
tree6b70ebe322e67714c1a14ae16d1779bee130577d /python
parent2be6cc688dcbaf1f9312785433efd1b15318182d (diff)
downloadlibrpm-tizen-967484b1df58ed3870039547f1167350314dc9d1.tar.gz
librpm-tizen-967484b1df58ed3870039547f1167350314dc9d1.tar.bz2
librpm-tizen-967484b1df58ed3870039547f1167350314dc9d1.zip
nuke const warning
CVS patchset: 3547 CVS date: 2000/02/08 20:18:38
Diffstat (limited to 'python')
-rw-r--r--python/rpmmodule.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c
index 52362f656..888adc9f2 100644
--- a/python/rpmmodule.c
+++ b/python/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);