doUntar() accepts only unsigned SourceXX numbers
authorJindrich Novy <jnovy@redhat.com>
Tue, 1 Jul 2008 10:47:36 +0000 (12:47 +0200)
committerJindrich Novy <jnovy@redhat.com>
Tue, 1 Jul 2008 10:54:13 +0000 (12:54 +0200)
build/parsePrep.c

index bb82c7b..1c5a216 100644 (file)
@@ -131,7 +131,7 @@ static char *doPatch(rpmSpec spec, uint32_t c, int strip, const char *db,
  * @param quietly      should -vv be omitted from tar?
  * @return             expanded %setup macro (NULL on error)
  */
-static char *doUntar(rpmSpec spec, int c, int quietly)
+static char *doUntar(rpmSpec spec, uint32_t c, int quietly)
 {
     char *fn;
     char *buf = NULL;
@@ -145,7 +145,7 @@ static char *doUntar(rpmSpec spec, int c, int quietly)
        }
     }
     if (sp == NULL) {
-       rpmlog(RPMLOG_ERR, _("No source number %d\n"), c);
+       rpmlog(RPMLOG_ERR, _("No source number %u\n"), c);
        return NULL;
     }