summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-07-12 09:20:09 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-07-12 09:20:09 +0300
commit29dbb10c1f30b241486bcb60627283e8a87950ec (patch)
tree13dd60a8a9c19c3b49e6d952368dc83f3d46cb9d /python
parent495efd502db5e1d663e77cfb0a3c47dfacb7e018 (diff)
downloadrpm-29dbb10c1f30b241486bcb60627283e8a87950ec.tar.gz
rpm-29dbb10c1f30b241486bcb60627283e8a87950ec.tar.bz2
rpm-29dbb10c1f30b241486bcb60627283e8a87950ec.zip
Some obvious "missing const" cases...
Diffstat (limited to 'python')
-rw-r--r--python/header-py.c2
-rw-r--r--python/rpmfts-py.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/header-py.c b/python/header-py.c
index 470cd3a82..a6901e310 100644
--- a/python/header-py.c
+++ b/python/header-py.c
@@ -463,7 +463,7 @@ static PyObject * hdr_subscript(hdrObject * s, PyObject * item)
int forceArray = 0;
int freeData = 0;
char * str;
- struct headerSprintfExtension_s * ext = NULL;
+ const struct headerSprintfExtension_s * ext = NULL;
const struct headerSprintfExtension_s * extensions = rpmHeaderFormats;
if (PyCObject_Check (item))
diff --git a/python/rpmfts-py.c b/python/rpmfts-py.c
index bb3594395..147ecbe10 100644
--- a/python/rpmfts-py.c
+++ b/python/rpmfts-py.c
@@ -432,7 +432,7 @@ rpmfts_debug(__FUNCTION__, s);
if (s->md_dict == NULL)
goto fail;
if (type->tp_name) {
- char * name;
+ const char * name;
if ((name = strrchr(type->tp_name, '.')) != NULL)
name++;
else