Fix yet-another-compiler-warning.
tmpSpecFile gets passed to mkstemp() which expects to modify the template thus discarding const
This commit is contained in:
parent
6e0ccfb0d5
commit
a0f532e2fa
2
build.c
2
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
|
||||
|
|
Loading…
Reference in New Issue