diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -1561,12 +1561,10 @@ Pkg_buildtime(pkg) installtid = 1 CODE: if (pkg->h) { - switch (ix) { - case 1: - RETVAL = get_int(pkg->h, RPMTAG_INSTALLTID); break; - default: - RETVAL = get_int(pkg->h, RPMTAG_BUILDTIME); break; - } + if (ix == 1) + RETVAL = get_int(pkg->h, RPMTAG_INSTALLTID); + else + RETVAL = get_int(pkg->h, RPMTAG_BUILDTIME); } else RETVAL = 0; OUTPUT: @@ -2154,12 +2152,10 @@ Pkg_get_tag(pkg, tagname) get_tag_modifiers = 1 PPCODE: PUTBACK; - switch (ix) { - case 0: - return_list_tag(pkg, tagname); break; - case 1: - return_list_tag_modifier(pkg->h, tagname); break; - } + if (ix == 0) + return_list_tag(pkg, tagname); + else + return_list_tag_modifier(pkg->h, tagname); SPAGAIN; |