diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-13 18:43:38 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-13 18:43:38 +0000 |
commit | 9b59a2f33c6f997be0d1e779c2c0276156ef9292 (patch) | |
tree | d2a4f6d4c3fa13f3ea3db66c5b00757944e71d39 | |
parent | 9a4eb02a323a148480fb59cd3ce5784194602ea8 (diff) | |
download | perl-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
-rw-r--r-- | URPM.xs | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |