From 19974080aae72472f00db49d80d954350f1cc8f4 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 13 Jun 2012 18:43:00 +0000 Subject: (listtag,tag,tagtype) use rpmtdTag() & rpmtdType() accessors (rather than access struct members directly) git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@202 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/src/RPM4.xs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index 2c5f805..d3c0b96 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -1090,7 +1090,7 @@ Header_listtag(h) PPCODE: iterator = headerInitIterator(h); while (headerNext(iterator, &td)) { - mXPUSHs(newSViv(td.tag)); + mXPUSHs(newSViv(rpmtdTag(&td))); rpmtdFreeData(&td); } rpmtdFreeData(&td); @@ -1131,7 +1131,7 @@ Header_tag(h, sv_tag) if (tag > 0) { struct rpmtd_s val; if (headerGet(h, tag, &val, HEADERGET_DEFAULT)) { - int type = val.type; + int type = rpmtdType(&val); int n = rpmtdCount(&val); switch(type) { @@ -1195,7 +1195,7 @@ Header_tagtype(h, sv_tag) RETVAL = RPM_NULL_TYPE; if (tag > 0) if (headerGet(h, tag, &td, HEADERGET_DEFAULT)) - RETVAL = td.type; + RETVAL = rpmtdType(&td); rpmtdFreeData(&td); OUTPUT: RETVAL -- cgit v1.2.1