From 29dbb10c1f30b241486bcb60627283e8a87950ec Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 12 Jul 2007 09:20:09 +0300 Subject: [PATCH] Some obvious "missing const" cases... --- lib/rpmlock.c | 2 +- python/header-py.c | 2 +- python/rpmfts-py.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rpmlock.c b/lib/rpmlock.c index 51cae3d..30a6c88 100644 --- a/lib/rpmlock.c +++ b/lib/rpmlock.c @@ -37,7 +37,7 @@ static rpmlock rpmlock_new(/*@unused@*/ const char *rootdir) /* XXX oneshot to determine path for fcntl lock. */ if (rpmlock_path == NULL) { - char * t = rpmGenPath(rootdir, rpmlock_path_default, NULL); + const char * t = rpmGenPath(rootdir, rpmlock_path_default, NULL); if (t == NULL || *t == '\0' || *t == '%') t = strdup(RPMLOCK_PATH); rpmlock_path = xstrdup(t); diff --git a/python/header-py.c b/python/header-py.c index 470cd3a..a6901e3 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 bb35943..147ecbe 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 -- 2.7.4