From afc392537ffb84396dedfe2cb4270e7dfa6ccd3f Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Tue, 1 Jul 2008 12:46:16 +0200 Subject: [PATCH] Convert doPatch() to use parseUnsignedNum() --- build/parsePrep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/parsePrep.c b/build/parsePrep.c index d6e0a40..bb82c7b 100644 --- a/build/parsePrep.c +++ b/build/parsePrep.c @@ -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); -- 2.7.4