aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
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;
}