aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-13 18:43:38 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-13 18:43:38 +0000
commit9b59a2f33c6f997be0d1e779c2c0276156ef9292 (patch)
treed2a4f6d4c3fa13f3ea3db66c5b00757944e71d39 /URPM.xs
parent9a4eb02a323a148480fb59cd3ce5784194602ea8 (diff)
downloadperl-URPM-9b59a2f33c6f997be0d1e779c2c0276156ef9292.tar
perl-URPM-9b59a2f33c6f997be0d1e779c2c0276156ef9292.tar.gz
perl-URPM-9b59a2f33c6f997be0d1e779c2c0276156ef9292.tar.bz2
perl-URPM-9b59a2f33c6f997be0d1e779c2c0276156ef9292.tar.xz
perl-URPM-9b59a2f33c6f997be0d1e779c2c0276156ef9292.zip
(return_list_tag_modifier) simplify
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs6
1 files changed, 2 insertions, 4 deletions
diff --git a/URPM.xs b/URPM.xs
index 7d90731..48b2930 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -509,8 +509,7 @@ return_list_tag_modifier(Header header, int32_t tag_name) {
for (i = 0; i < count; i++) {
char buff[15];
char *s = buff;
- switch (tag_name) {
- case RPMTAG_FILEFLAGS:
+ if (tag_name == RPMTAG_FILEFLAGS) {
if (list[i] & RPMFILE_CONFIG) *s++ = 'c';
if (list[i] & RPMFILE_DOC) *s++ = 'd';
if (list[i] & RPMFILE_GHOST) *s++ = 'g';
@@ -523,8 +522,7 @@ return_list_tag_modifier(Header header, int32_t tag_name) {
if (list[i] & RPMFILE_ICON) *s++ = 'i';
if (list[i] & RPMFILE_UNPATCHED) *s++ = 'u';
if (list[i] & RPMFILE_PUBKEY) *s++ = 'p';
- break;
- default:
+ } else {
rpmtdFreeData(&td);
return;
}