From: Jindrich Novy Date: Tue, 1 Jul 2008 10:42:12 +0000 (+0200) Subject: Convert Epoch parsing to use parseUnsignedNum() X-Git-Tag: tznext/4.11.0.1.tizen20130304~3771 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=206fd12122b7c2e0cf07768f639d78b5f1e4bd5e;p=tools%2Flibrpm-tizen.git Convert Epoch parsing to use parseUnsignedNum() --- 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; }