summaryrefslogtreecommitdiffstats
path: root/RPM4/src/RPM4.xs
diff options
context:
space:
mode:
authortv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-06-25 18:27:29 +0000
committertv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-06-25 18:27:29 +0000
commitf9e0cff23c23f7157929f3ebf1ef9892c17ffe58 (patch)
treeb4d77731b6917ca3993147eb38c01965031d3337 /RPM4/src/RPM4.xs
parenta4fb3997ba6dad842934b08400e12f065e4a733c (diff)
downloadperl-RPM4-f9e0cff23c23f7157929f3ebf1ef9892c17ffe58.tar
perl-RPM4-f9e0cff23c23f7157929f3ebf1ef9892c17ffe58.tar.gz
perl-RPM4-f9e0cff23c23f7157929f3ebf1ef9892c17ffe58.tar.bz2
perl-RPM4-f9e0cff23c23f7157929f3ebf1ef9892c17ffe58.tar.xz
perl-RPM4-f9e0cff23c23f7157929f3ebf1ef9892c17ffe58.zip
(Ts_traverse) simplify (thus silenting compiler warning)
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@218 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4/src/RPM4.xs')
-rw-r--r--RPM4/src/RPM4.xs7
1 files changed, 2 insertions, 5 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index 520e246..8d7d5b0 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -1541,15 +1541,12 @@ Ts_traverse(ts, callback = NULL, sv_tagname = NULL, sv_tagvalue = NULL, keylen =
tag = sv2dbquerytag(sv_tagname);
}
if (sv_tagvalue != NULL && SvOK(sv_tagvalue)) {
- switch (tag) {
- case RPMDBI_PACKAGES:
+ if (tag == RPMDBI_PACKAGES) {
i = SvIV(sv_tagvalue);
value = &i;
keylen = sizeof(i);
- break;
- default:
+ } else {
value = (void *) SvPV_nolen(sv_tagvalue);
- break;
}
}