Fix yet-another-compiler-warning.

tmpSpecFile gets passed to mkstemp() which expects to modify the template
thus discarding const
This commit is contained in:
Panu Matilainen 2007-07-12 09:16:23 +03:00
parent 6e0ccfb0d5
commit a0f532e2fa
1 changed files with 1 additions and 1 deletions

View File

@ -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