aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-22 16:02:59 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-22 16:02:59 +0000
commitb619f83d1cd2ac55eaef011bba62ff0d2d5ae1a0 (patch)
tree834f56be2f14f48cb257d69e0abf04d8d2ef9c6f /URPM.xs
parent525ddb9ffcfbc77661e6532d28d6c91f08eba93e (diff)
downloadperl-URPM-b619f83d1cd2ac55eaef011bba62ff0d2d5ae1a0.tar
perl-URPM-b619f83d1cd2ac55eaef011bba62ff0d2d5ae1a0.tar.gz
perl-URPM-b619f83d1cd2ac55eaef011bba62ff0d2d5ae1a0.tar.bz2
perl-URPM-b619f83d1cd2ac55eaef011bba62ff0d2d5ae1a0.tar.xz
perl-URPM-b619f83d1cd2ac55eaef011bba62ff0d2d5ae1a0.zip
(compare_pkg,compare) style: variables
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");