From 206fd12122b7c2e0cf07768f639d78b5f1e4bd5e Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Tue, 1 Jul 2008 12:42:12 +0200 Subject: [PATCH] Convert Epoch parsing to use parseUnsignedNum() --- build/parsePreamble.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/parsePreamble.c b/build/parsePreamble.c index d5ea09f..3f944ed 100644 --- a/build/parsePreamble.c +++ b/build/parsePreamble.c @@ -592,10 +592,10 @@ static int handlePreambleTag(rpmSpec spec, Package pkg, rpmTag tag, break; case RPMTAG_EPOCH: { SINGLE_TOKEN_ONLY; - int epoch; - if (parseNum(field, &epoch)) { + uint32_t epoch; + if (parseUnsignedNum(field, &epoch)) { rpmlog(RPMLOG_ERR, - _("line %d: Epoch field must be a number: %s\n"), + _("line %d: Epoch field must be an unsigned number: %s\n"), spec->lineNum, spec->line); return RPMRC_FAIL; } -- 2.7.4