diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-13 18:44:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-13 18:44:25 +0000 |
commit | 7df7c4b5fa53370a50e5584595c6851d89d403e0 (patch) | |
tree | 4b2a6578fe0a1feabe4eeb677d6ad021ba39d7c3 /URPM.xs | |
parent | 8870e1bfaed6b6a6458065e85e58d8a214cceb68 (diff) | |
download | perl-URPM-7df7c4b5fa53370a50e5584595c6851d89d403e0.tar perl-URPM-7df7c4b5fa53370a50e5584595c6851d89d403e0.tar.gz perl-URPM-7df7c4b5fa53370a50e5584595c6851d89d403e0.tar.bz2 perl-URPM-7df7c4b5fa53370a50e5584595c6851d89d403e0.tar.xz perl-URPM-7df7c4b5fa53370a50e5584595c6851d89d403e0.zip |
style: put single statement at line after if ()
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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 |