From 9da95461b65a6ca87b2ec71cc76b968b2a3167eb Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 2 Jan 2012 16:18:09 +0000 Subject: (_headername_vs_dep,Header_tag,Header_tagtype) fix signedness of arguments of headerGetEntry() git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@167 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/src/RPM4.xs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index df75a87..2d377ee 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -470,7 +470,7 @@ int _header_vs_dep(Header h, rpmds dep, int nopromote) { } int _headername_vs_dep(Header h, rpmds dep, int nopromote) { - char *name; int type; + char *name; rpm_tagtype_t type; int rc = 0; CHECK_RPMDS_IX(dep); headerGetEntry(h, RPMTAG_NAME, &type, (void **) &name, NULL); @@ -1092,8 +1092,8 @@ Header_tag(h, sv_tag) SV * sv_tag PREINIT: void *ret = NULL; - int type; - int n; + rpm_tagtype_t type; + rpm_tagtype_t n; rpmTag tag = -1; PPCODE: if (SvIOK(sv_tag)) { @@ -1145,12 +1145,12 @@ Header_tag(h, sv_tag) } headerFreeTag(h, ret, type); -int +unsigned int Header_tagtype(h, sv_tag) Header h SV * sv_tag PREINIT: - int type; + rpm_tagtype_t type; rpmTag tag = -1; CODE: if (SvIOK(sv_tag)) { -- cgit v1.2.1