aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-17 20:38:25 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-17 20:38:25 +0000
commit498227c7e53d0d68f7fa22f7b26e6bf0e68b25fc (patch)
tree45fd5f0260491232d5d9ffe5c8d159bea95999e2 /URPM.xs
parent6c82e68a1120fb4b700b3780e2ebbf6f27c9ee15 (diff)
downloadperl-URPM-498227c7e53d0d68f7fa22f7b26e6bf0e68b25fc.tar
perl-URPM-498227c7e53d0d68f7fa22f7b26e6bf0e68b25fc.tar.gz
perl-URPM-498227c7e53d0d68f7fa22f7b26e6bf0e68b25fc.tar.bz2
perl-URPM-498227c7e53d0d68f7fa22f7b26e6bf0e68b25fc.tar.xz
perl-URPM-498227c7e53d0d68f7fa22f7b26e6bf0e68b25fc.zip
(return_files,Pkg_fullname) silent 2 compiler warnings
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index ecde086..54f0b0c 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -690,7 +690,7 @@ return_files(const Header header, int filter_mode) {
rpmtdInit(&td_list);
}
- int count = is_oldfilenames ? rpmtdCount(&td_list) : rpmtdCount(&td_baseNames);
+ rpm_count_t count = is_oldfilenames ? rpmtdCount(&td_list) : rpmtdCount(&td_baseNames);
for(i = 0; i < count; i++) {
if (is_oldfilenames) {
s = rpmtdNextString(&td_list);
@@ -1600,7 +1600,7 @@ Pkg_fullname(pkg)
char *arch = get_arch(pkg->h);
if (gimme == G_SCALAR) {
- const char *s = headerGetAsString(pkg->h, RPMTAG_NVR);
+ char *s = headerGetAsString(pkg->h, RPMTAG_NVR);
mXPUSHs(newSVpvf("%s.%s", s, arch));
free(s);
} else if (gimme == G_ARRAY) {