summaryrefslogtreecommitdiff
path: root/build/build.c
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 /build/build.c
parentdce66192f2f01817b3027c8c61c770abbfffd131 (diff)
downloadrpm-b6a663ec0a421d822578d831153bc0fbc2d6f410.tar.gz
rpm-b6a663ec0a421d822578d831153bc0fbc2d6f410.tar.bz2
rpm-b6a663ec0a421d822578d831153bc0fbc2d6f410.zip
Remove bogus const from rpmGetPath() temporary targets
Diffstat (limited to 'build/build.c')
-rw-r--r--build/build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/build.c b/build/build.c
index 177cbd223..7a6074c3a 100644
--- a/build/build.c
+++ b/build/build.c
@@ -27,7 +27,7 @@ static void doRmSource(rpmSpec spec)
for (p = spec->sources; p != NULL; p = p->next) {
if (! (p->flags & RPMBUILD_ISNO)) {
- const char *fn = rpmGetPath("%{_sourcedir}/", p->source, NULL);
+ char *fn = rpmGetPath("%{_sourcedir}/", p->source, NULL);
rc = unlink(fn);
fn = _free(fn);
}
@@ -36,7 +36,7 @@ static void doRmSource(rpmSpec spec)
for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
for (p = pkg->icon; p != NULL; p = p->next) {
if (! (p->flags & RPMBUILD_ISNO)) {
- const char *fn = rpmGetPath("%{_sourcedir}/", p->source, NULL);
+ char *fn = rpmGetPath("%{_sourcedir}/", p->source, NULL);
rc = unlink(fn);
fn = _free(fn);
}