summaryrefslogtreecommitdiff
path: root/build/parsePrep.c
diff options
context:
space:
mode:
authorJindrich Novy <jnovy@redhat.com>2008-07-01 12:47:36 +0200
committerJindrich Novy <jnovy@redhat.com>2008-07-01 12:54:13 +0200
commite9e77e64636f4a8e7f066776e3556a8e2de2e51c (patch)
treee2acaaae7566b5756492be1bb747f972cd452568 /build/parsePrep.c
parentafc392537ffb84396dedfe2cb4270e7dfa6ccd3f (diff)
downloadlibrpm-tizen-e9e77e64636f4a8e7f066776e3556a8e2de2e51c.tar.gz
librpm-tizen-e9e77e64636f4a8e7f066776e3556a8e2de2e51c.tar.bz2
librpm-tizen-e9e77e64636f4a8e7f066776e3556a8e2de2e51c.zip
doUntar() accepts only unsigned SourceXX numbers
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r--build/parsePrep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c
index bb82c7b75..1c5a216dd 100644
--- a/build/parsePrep.c
+++ b/build/parsePrep.c
@@ -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;
}