projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e0ccfb
)
Fix yet-another-compiler-warning.
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 12 Jul 2007 06:16:23 +0000
(09:16 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 12 Jul 2007 06:16:23 +0000
(09:16 +0300)
tmpSpecFile gets passed to mkstemp() which expects to modify the template
thus discarding const
build.c
patch
|
blob
|
history
diff --git
a/build.c
b/build.c
index
459ab76
..
552afa2
100644
(file)
--- a/
build.c
+++ b/
build.c
@@
-139,7
+139,7
@@
static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
specDir = rpmGetPath("%{_specdir}", NULL);
- tmpSpecFile = rpmGetPath("%{_specdir}/", "rpm-spec.XXXXXX", NULL);
+ tmpSpecFile =
(char *)
rpmGetPath("%{_specdir}/", "rpm-spec.XXXXXX", NULL);
#if defined(HAVE_MKSTEMP)
(void) close(mkstemp(tmpSpecFile));
#else