summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-16 16:25:09 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-16 16:25:09 +0200
commit14284725e6ddca4a8cd8ce5b0a4ba1e1ee7cef73 (patch)
treee70b2f0c26bd407051d2309eef3afe027c0244f0 /build
parent3ec48632b894c299c4c4455d4e12bbce0bd37f32 (diff)
downloadrpm-14284725e6ddca4a8cd8ce5b0a4ba1e1ee7cef73.tar.gz
rpm-14284725e6ddca4a8cd8ce5b0a4ba1e1ee7cef73.tar.bz2
rpm-14284725e6ddca4a8cd8ce5b0a4ba1e1ee7cef73.zip
Remove const from rpmMkTempFile file name parameter
- the temp name is malloced and needs to be freed by caller
Diffstat (limited to 'build')
-rw-r--r--build/build.c2
-rw-r--r--build/pack.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/build/build.c b/build/build.c
index 120ef42d6..9399b2b02 100644
--- a/build/build.c
+++ b/build/build.c
@@ -51,7 +51,7 @@ rpmRC doScript(rpmSpec spec, rpmBuildFlags what, const char *name, StringBuf sb,
{
const char * rootURL = spec->rootURL;
const char * rootDir;
- const char *scriptName = NULL;
+ char *scriptName = NULL;
char * buildDirURL = rpmGenPath(rootURL, "%{_builddir}", "");
const char * buildScript;
char * buildCmd = NULL;
diff --git a/build/pack.c b/build/pack.c
index 30871378d..ed7d0cbc1 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -347,7 +347,7 @@ rpmRC writeRPM(Header *hdrp, unsigned char ** pkgidp, const char *fileName,
FD_t fd = NULL;
FD_t ifd = NULL;
int32_t count, sigtag;
- const char * sigtarget = NULL;;
+ char * sigtarget = NULL;;
char * rpmio_flags = NULL;
const char * SHA1 = NULL;
char *s;