diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-07-01 12:46:16 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-07-01 12:54:13 +0200 |
commit | afc392537ffb84396dedfe2cb4270e7dfa6ccd3f (patch) | |
tree | 6d424062ea5657b612bcca4853cd8eeb095a4c38 /build/parsePrep.c | |
parent | e831de1040243bd33163a930137f1318ece4d61c (diff) | |
download | librpm-tizen-afc392537ffb84396dedfe2cb4270e7dfa6ccd3f.tar.gz librpm-tizen-afc392537ffb84396dedfe2cb4270e7dfa6ccd3f.tar.bz2 librpm-tizen-afc392537ffb84396dedfe2cb4270e7dfa6ccd3f.zip |
Convert doPatch() to use parseUnsignedNum()
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r-- | build/parsePrep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c index d6e0a404e..bb82c7b75 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); |