aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs15
1 files changed, 4 insertions, 11 deletions
diff --git a/URPM.xs b/URPM.xs
index 34d325d..eb52923 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1615,14 +1615,9 @@ Pkg_compare_pkg(lpkg, rpkg)
URPM::Package rpkg
PREINIT:
int compare = 0;
- int lepoch;
- char *lversion;
- char *lrelease;
- char *larch;
- int repoch;
- char *rversion;
- char *rrelease;
- char *rarch;
+ int lepoch, repoch;
+ char *lversion, *lrelease, *larch;
+ char *rversion, *rrelease, *rarch;
CODE:
if (lpkg == rpkg) RETVAL = 0;
else {
@@ -1683,9 +1678,7 @@ Pkg_compare(pkg, evr)
char *evr
PREINIT:
int _epoch, repoch = 0;
- char *_version;
- char *_release;
- char *_eos;
+ char *_version, *_release, *_eos;
CODE:
if (!get_e_v_r(pkg, &_epoch, &_version, &_release, &_eos))
croak("undefined package");