aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs16
1 files changed, 4 insertions, 12 deletions
diff --git a/URPM.xs b/URPM.xs
index 5c5d309..476253e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1530,12 +1530,9 @@ Pkg_buildtime(pkg)
ALIAS:
installtid = 1
CODE:
- if (pkg->h) {
- if (ix == 1)
- RETVAL = get_int(pkg->h, RPMTAG_INSTALLTID);
- else
- RETVAL = get_int(pkg->h, RPMTAG_BUILDTIME);
- } else
+ if (pkg->h)
+ RETVAL = get_int(pkg->h, ix == 1 ? RPMTAG_INSTALLTID : RPMTAG_BUILDTIME);
+ else
RETVAL = 0;
OUTPUT:
RETVAL
@@ -2065,12 +2062,7 @@ Pkg_files(pkg)
conf_files = 1
PPCODE:
PUTBACK;
- int filter_mode;
- if (ix == 0)
- filter_mode = 0;
- else
- filter_mode = FILTER_MODE_CONF_FILES;
- return_files(pkg->h, filter_mode);
+ return_files(pkg->h, ix == 0 ? 0 : FILTER_MODE_CONF_FILES);
SPAGAIN;
void