Fix yet-another-compiler-warning.
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 12 Jul 2007 06:16:23 +0000 (09:16 +0300)
committerPanu 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

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