aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs15
1 files changed, 10 insertions, 5 deletions
diff --git a/URPM.xs b/URPM.xs
index bed82a6..df152cc 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1600,7 +1600,8 @@ Pkg_epoch(pkg)
char *s, *eos;
if ((s = strchr(pkg->info, '@')) != NULL) {
- if ((eos = strchr(s+1, '@')) != NULL) *eos = 0; /* mark end of string to enable searching backwards */
+ if ((eos = strchr(s+1, '@')) != NULL)
+ *eos = 0; /* mark end of string to enable searching backwards */
RETVAL = atoi(s+1);
if (eos != NULL) *eos = '@';
} else
@@ -1634,7 +1635,8 @@ Pkg_compare_pkg(lpkg, rpkg)
char *s;
if ((s = strchr(lpkg->info, '@')) != NULL) {
- if ((leos = strchr(s+1, '@')) != NULL) *leos = 0; /* mark end of string to enable searching backwards */
+ if ((leos = strchr(s+1, '@')) != NULL)
+ *leos = 0; /* mark end of string to enable searching backwards */
lepoch = atoi(s+1);
if (leos != NULL) *leos = '@';
} else
@@ -1738,9 +1740,11 @@ Pkg_compare(pkg, evr)
char *s;
if ((s = strchr(pkg->info, '@')) != NULL) {
- if ((_eos = strchr(s+1, '@')) != NULL) *_eos = 0; /* mark end of string to enable searching backwards */
+ if ((_eos = strchr(s+1, '@')) != NULL)
+ *_eos = 0; /* mark end of string to enable searching backwards */
_epoch = atoi(s+1);
- if (_eos != NULL) *_eos = '@';
+ if (_eos != NULL)
+ *_eos = '@';
} else
_epoch = 0;
get_fullname_parts(pkg, NULL, &_version, &_release, &_eos, NULL);
@@ -1803,7 +1807,8 @@ Pkg_size(pkg)
char *s, *eos;
if ((s = strchr(pkg->info, '@')) != NULL && (s = strchr(s+1, '@')) != NULL) {
- if ((eos = strchr(s+1, '@')) != NULL) *eos = 0; /* mark end of string to enable searching backwards */
+ if ((eos = strchr(s+1, '@')) != NULL)
+ *eos = 0; /* mark end of string to enable searching backwards */
RETVAL = atoi(s+1);
if (eos != NULL) *eos = '@';
} else