summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-06-13 18:43:00 +0000
committertv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-06-13 18:43:00 +0000
commit19974080aae72472f00db49d80d954350f1cc8f4 (patch)
tree9801332fe4efa793e0a8cba95db750bdeba27110
parent1dc81994e4451d51109f99e33506a0584350ac85 (diff)
downloadperl-RPM4-19974080aae72472f00db49d80d954350f1cc8f4.tar
perl-RPM4-19974080aae72472f00db49d80d954350f1cc8f4.tar.gz
perl-RPM4-19974080aae72472f00db49d80d954350f1cc8f4.tar.bz2
perl-RPM4-19974080aae72472f00db49d80d954350f1cc8f4.tar.xz
perl-RPM4-19974080aae72472f00db49d80d954350f1cc8f4.zip
(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
-rw-r--r--RPM4/src/RPM4.xs6
1 files 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