diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-15 11:03:46 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-15 11:03:46 +0200 |
commit | 1a0a12cf159a05471be62016a318d0653ae30ff5 (patch) | |
tree | a9c0385f1a19406e0158386bdac2ef0309b3b70e /rpmdb | |
parent | b6a663ec0a421d822578d831153bc0fbc2d6f410 (diff) | |
download | librpm-tizen-1a0a12cf159a05471be62016a318d0653ae30ff5.tar.gz librpm-tizen-1a0a12cf159a05471be62016a318d0653ae30ff5.tar.bz2 librpm-tizen-1a0a12cf159a05471be62016a318d0653ae30ff5.zip |
Remove bogus const from rpmGenPath() temporary targets
Diffstat (limited to 'rpmdb')
-rw-r--r-- | rpmdb/db3.c | 8 | ||||
-rw-r--r-- | rpmdb/sqlite.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/rpmdb/db3.c b/rpmdb/db3.c index b741e627c..085bd283a 100644 --- a/rpmdb/db3.c +++ b/rpmdb/db3.c @@ -319,7 +319,7 @@ static int db_init(dbiIndex dbi, const char * dbhome, } if (dbi->dbi_tmpdir) { const char * root; - const char * tmpdir; + char * tmpdir; root = (dbi->dbi_root ? dbi->dbi_root : rpmdb->db_root); if ((root[0] == '/' && root[1] == '\0') || rpmdb->db_chrootDone) @@ -633,7 +633,7 @@ assert(db != NULL); static int db3close(dbiIndex dbi, unsigned int flags) { rpmdb rpmdb = dbi->dbi_rpmdb; - const char * urlfn = NULL; + char * urlfn = NULL; const char * root; const char * home; const char * dbhome; @@ -715,7 +715,7 @@ static int db3close(dbiIndex dbi, unsigned int flags) (dbi->dbi_verbose & DB_VERB_WAITSFOR)); if (dbi->dbi_tmpdir) { - const char * tmpdir = rpmGenPath(root, dbi->dbi_tmpdir, NULL); + char * tmpdir = rpmGenPath(root, dbi->dbi_tmpdir, NULL); rc = dbenv->set_tmp_dir(dbenv, tmpdir); rc = cvtdberr(dbi, "dbenv->set_tmp_dir", rc, _debug); tmpdir = _free(tmpdir); @@ -765,7 +765,7 @@ exit: static int db3open(rpmdb rpmdb, rpm_tag_t rpmtag, dbiIndex * dbip) { extern struct _dbiVec db3vec; - const char * urlfn = NULL; + char * urlfn = NULL; const char * root; const char * home; const char * dbhome; diff --git a/rpmdb/sqlite.c b/rpmdb/sqlite.c index 5e52ae0ff..f7cf853cb 100644 --- a/rpmdb/sqlite.c +++ b/rpmdb/sqlite.c @@ -770,12 +770,12 @@ static int sql_open(rpmdb rpmdb, rpm_tag_t rpmtag, dbiIndex * dbip) { extern struct _dbiVec sqlitevec; - const char * urlfn = NULL; + char * urlfn = NULL; const char * root; const char * home; const char * dbhome; const char * dbfile; - const char * dbfname; + char * dbfname; const char * sql_errcode; dbiIndex dbi; SQL_DB * sqldb; |