summaryrefslogtreecommitdiff
path: root/build/spec.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-03-24 19:03:20 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-03-24 19:03:20 +0200
commitc4659498e3d5833de32c494d83567c9c15e13700 (patch)
tree7f4d4b604d48298a2ff07bc4a47d1e2f2e0336f0 /build/spec.c
parent2cf64e95f2dc2ecac05be776e1e5e3a232d56948 (diff)
downloadlibrpm-tizen-c4659498e3d5833de32c494d83567c9c15e13700.tar.gz
librpm-tizen-c4659498e3d5833de32c494d83567c9c15e13700.tar.bz2
librpm-tizen-c4659498e3d5833de32c494d83567c9c15e13700.zip
Eliminate bogus const's from spec structure
Diffstat (limited to 'build/spec.c')
-rw-r--r--build/spec.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/build/spec.c b/build/spec.c
index 0ee044e36..166eae3a0 100644
--- a/build/spec.c
+++ b/build/spec.c
@@ -153,16 +153,16 @@ Package freePackage(Package pkg)
{
if (pkg == NULL) return NULL;
- pkg->preInFile = _constfree(pkg->preInFile);
- pkg->postInFile = _constfree(pkg->postInFile);
- pkg->preUnFile = _constfree(pkg->preUnFile);
- pkg->postUnFile = _constfree(pkg->postUnFile);
- pkg->verifyFile = _constfree(pkg->verifyFile);
+ pkg->preInFile = _free(pkg->preInFile);
+ pkg->postInFile = _free(pkg->postInFile);
+ pkg->preUnFile = _free(pkg->preUnFile);
+ pkg->postUnFile = _free(pkg->postUnFile);
+ pkg->verifyFile = _free(pkg->verifyFile);
pkg->header = headerFree(pkg->header);
pkg->ds = rpmdsFree(pkg->ds);
pkg->fileList = freeStringBuf(pkg->fileList);
- pkg->fileFile = _constfree(pkg->fileFile);
+ pkg->fileFile = _free(pkg->fileFile);
if (pkg->cpioList) {
rpmfi fi = pkg->cpioList;
pkg->cpioList = NULL;
@@ -492,10 +492,10 @@ rpmSpec freeSpec(rpmSpec spec)
spec->check = freeStringBuf(spec->check);
spec->clean = freeStringBuf(spec->clean);
- spec->buildRootURL = _constfree(spec->buildRootURL);
- spec->buildSubdir = _constfree(spec->buildSubdir);
- spec->rootURL = _constfree(spec->rootURL);
- spec->specFile = _constfree(spec->specFile);
+ spec->buildRootURL = _free(spec->buildRootURL);
+ spec->buildSubdir = _free(spec->buildSubdir);
+ spec->rootURL = _free(spec->rootURL);
+ spec->specFile = _free(spec->specFile);
closeSpec(spec);
@@ -506,7 +506,7 @@ rpmSpec freeSpec(rpmSpec spec)
rl = _free(rl);
}
- spec->sourceRpmName = _constfree(spec->sourceRpmName);
+ spec->sourceRpmName = _free(spec->sourceRpmName);
spec->sourcePkgId = _free(spec->sourcePkgId);
spec->sourceHeader = headerFree(spec->sourceHeader);
@@ -529,7 +529,7 @@ rpmSpec freeSpec(rpmSpec spec)
spec->BANames = _free(spec->BANames);
spec->passPhrase = _free(spec->passPhrase);
- spec->cookie = _constfree(spec->cookie);
+ spec->cookie = _free(spec->cookie);
#ifdef WITH_LUA
rpmlua lua = NULL; /* global state */