aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-22 19:23:34 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-22 19:23:34 +0000
commitd0a361d3f7674910ac74be4454333696239457b3 (patch)
treedf5ab8ec14ce95442f012d9a0da186740523ccf3
parent7514058dfd22eadac9c6a504c8afdf569eb0cf1f (diff)
downloadperl-URPM-d0a361d3f7674910ac74be4454333696239457b3.tar
perl-URPM-d0a361d3f7674910ac74be4454333696239457b3.tar.gz
perl-URPM-d0a361d3f7674910ac74be4454333696239457b3.tar.bz2
perl-URPM-d0a361d3f7674910ac74be4454333696239457b3.tar.xz
perl-URPM-d0a361d3f7674910ac74be4454333696239457b3.zip
(get_filesize) use librpm's headerGetNumber()
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 20dcea3..d6453d0 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -176,7 +176,7 @@ get_int(Header header, int32_t tag) {
static size_t
get_filesize(const Header h) {
- return get_int(h, RPMTAG_SIGSIZE) + 440; /* 440 is the rpm header size (?) empirical, but works */
+ return headerGetNumber(h, RPMTAG_SIGSIZE) + 440; /* 440 is the rpm header size (?) empirical, but works */
}
static int