From 498227c7e53d0d68f7fa22f7b26e6bf0e68b25fc Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 17 Jun 2012 20:38:25 +0000 Subject: (return_files,Pkg_fullname) silent 2 compiler warnings --- URPM.xs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'URPM.xs') 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) { -- cgit v1.2.1