int noDeps;
int incldocs;
rpmRelocation * relocations;
- const char * prefix;
+ char * prefix;
const char * rootdir;
};
* We pass these around as an array with a sentinel.
*/
struct rpmRelocation_s {
- const char * oldPath; /*!< NULL here evals to RPMTAG_DEFAULTPREFIX, */
- const char * newPath; /*!< NULL means to omit the file completely! */
+ char * oldPath; /*!< NULL here evals to RPMTAG_DEFAULTPREFIX, */
+ char * newPath; /*!< NULL means to omit the file completely! */
};
/** \ingroup rpmfi
/* XXX reference held by transaction set */
eiu->h = headerFree(eiu->h);
if (eiu->relocations)
- eiu->relocations->oldPath = _constfree(eiu->relocations->oldPath);
+ eiu->relocations->oldPath = _free(eiu->relocations->oldPath);
switch(rc) {
case 0:
if (p->relocs) {
for (r = p->relocs; (r->oldPath || r->newPath); r++) {
- r->oldPath = _constfree(r->oldPath);
- r->newPath = _constfree(r->newPath);
+ r->oldPath = _free(r->oldPath);
+ r->newPath = _free(r->newPath);
}
p->relocs = _free(p->relocs);
}
#ifdef IAM_RPMEIU
if (ia->relocations != NULL)
for (i = 0; i < ia->numRelocations; i++)
- ia->relocations[i].oldPath = _constfree(ia->relocations[i].oldPath);
+ ia->relocations[i].oldPath = _free(ia->relocations[i].oldPath);
ia->relocations = _free(ia->relocations);
#endif