Convert doPatch() to use parseUnsignedNum()
authorJindrich Novy <jnovy@redhat.com>
Tue, 1 Jul 2008 10:46:16 +0000 (12:46 +0200)
committerJindrich Novy <jnovy@redhat.com>
Tue, 1 Jul 2008 10:54:13 +0000 (12:54 +0200)
build/parsePrep.c

index d6e0a40..bb82c7b 100644 (file)
@@ -60,7 +60,7 @@ static rpmRC checkOwners(const char * urlfn)
  * @return             expanded %patch macro (NULL on error)
  */
 
-static char *doPatch(rpmSpec spec, int c, int strip, const char *db,
+static char *doPatch(rpmSpec spec, uint32_t c, int strip, const char *db,
                     int reverse, int removeEmpties, int fuzz)
 {
     char *fn;
@@ -77,7 +77,7 @@ static char *doPatch(rpmSpec spec, int c, int strip, const char *db,
        }
     }
     if (sp == NULL) {
-       rpmlog(RPMLOG_ERR, _("No patch number %d\n"), c);
+       rpmlog(RPMLOG_ERR, _("No patch number %u\n"), c);
        return NULL;
     }
 
@@ -114,7 +114,7 @@ static char *doPatch(rpmSpec spec, int c, int strip, const char *db,
     free(arg_backup);
     free(args);
     
-    rasprintf(&buf, "echo \"Patch #%d (%s):\"\n"
+    rasprintf(&buf, "echo \"Patch #%u (%s):\"\n"
                    "%s\n", 
                    c, basename(fn), patchcmd);