summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-15 10:39:15 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-15 10:39:15 +0200
commitb6a663ec0a421d822578d831153bc0fbc2d6f410 (patch)
tree381661095b6906f8bf850835476079db9f5a03d8 /rpmdb
parentdce66192f2f01817b3027c8c61c770abbfffd131 (diff)
downloadlibrpm-tizen-b6a663ec0a421d822578d831153bc0fbc2d6f410.tar.gz
librpm-tizen-b6a663ec0a421d822578d831153bc0fbc2d6f410.tar.bz2
librpm-tizen-b6a663ec0a421d822578d831153bc0fbc2d6f410.zip
Remove bogus const from rpmGetPath() temporary targets
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/db3.c6
-rw-r--r--rpmdb/rpmdb.c10
2 files changed, 8 insertions, 8 deletions
diff --git a/rpmdb/db3.c b/rpmdb/db3.c
index 7e7fc1aa3..b741e627c 100644
--- a/rpmdb/db3.c
+++ b/rpmdb/db3.c
@@ -731,7 +731,7 @@ static int db3close(dbiIndex dbi, unsigned int flags)
rc = cvtdberr(dbi, "db_create", rc, _debug);
if (db != NULL) {
- const char * dbf = rpmGetPath(dbhome, "/", dbfile, NULL);
+ char * dbf = rpmGetPath(dbhome, "/", dbfile, NULL);
rc = db->verify(db, dbf, NULL, NULL, flags);
rc = cvtdberr(dbi, "db->verify", rc, _debug);
@@ -883,7 +883,7 @@ static int db3open(rpmdb rpmdb, rpm_tag_t rpmtag, dbiIndex * dbip)
}
} else { /* dbhome is writable, check for persistent dbenv. */
- const char * dbf = rpmGetPath(dbhome, "/__db.001", NULL);
+ char * dbf = rpmGetPath(dbhome, "/__db.001", NULL);
if (access(dbf, F_OK) == -1) {
/* ... non-existent (or unwritable) DBENV, will create ... */
@@ -909,7 +909,7 @@ static int db3open(rpmdb rpmdb, rpm_tag_t rpmtag, dbiIndex * dbip)
if ((oflags & DB_CREATE) && (oflags & DB_RDONLY)) {
/* dbhome is writable, and DB->open flags may conflict. */
const char * dbfn = (dbfile ? dbfile : rpmTagGetName(dbi->dbi_rpmtag));
- const char * dbf = rpmGetPath(dbhome, "/", dbfn, NULL);
+ char * dbf = rpmGetPath(dbhome, "/", dbfn, NULL);
if (access(dbf, F_OK) == -1) {
/* File does not exist, DB->open might create ... */
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index 03cc1ba3c..707488152 100644
--- a/rpmdb/rpmdb.c
+++ b/rpmdb/rpmdb.c
@@ -3417,12 +3417,12 @@ int rpmdbRebuild(const char * prefix, rpmts ts,
rpmRC (*hdrchk) (rpmts ts, const void *uh, size_t uc, const char ** msg))
{
rpmdb olddb;
- const char * dbpath = NULL;
- const char * rootdbpath = NULL;
+ char * dbpath = NULL;
+ char * rootdbpath = NULL;
rpmdb newdb;
- const char * newdbpath = NULL;
- const char * newrootdbpath = NULL;
- const char * tfn;
+ char * newdbpath = NULL;
+ char * newrootdbpath = NULL;
+ char * tfn;
int nocleanup = 1;
int failed = 0;
int removedir = 0;