aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-03-06 14:24:41 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-03-06 14:24:41 +0000
commit9490883fb84eba1f34dc248c79e16c22f76510dd (patch)
tree1960cddbd2b259ca60f60af00fe38516baf75e35
parent9cd6498e87f71bc4ca9295871bebf72ebdf6b219 (diff)
downloadperl-URPM-9490883fb84eba1f34dc248c79e16c22f76510dd.tar
perl-URPM-9490883fb84eba1f34dc248c79e16c22f76510dd.tar.gz
perl-URPM-9490883fb84eba1f34dc248c79e16c22f76510dd.tar.bz2
perl-URPM-9490883fb84eba1f34dc248c79e16c22f76510dd.tar.xz
perl-URPM-9490883fb84eba1f34dc248c79e16c22f76510dd.zip
simplify as pixel suggested
use uint64_t in stead of unsigned long long (which is really the same, but nicer and more consistent with rpm5:)
-rw-r--r--URPM.xs16
1 files changed, 3 insertions, 13 deletions
diff --git a/URPM.xs b/URPM.xs
index 14702e2..c72117a 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -766,18 +766,8 @@ return_problems(rpmps ps, int translate_message) {
sv = newSVpvf("installed@%s@%s", pkgNEVR, altNEVR); break;
case RPMPROB_DISKSPACE:
-#ifdef RPM_450
- sv = newSVpvf("diskspace@%s@%s@%lld", pkgNEVR, s, rpmProblemGetLong(p)); break;
-#else
- sv = newSVpvf("diskspace@%s@%s@%ld", pkgNEVR, s, rpmProblemGetLong(p)); break;
-#endif
- case RPMPROB_DISKNODES:
-#ifdef RPM_450
- sv = newSVpvf("disknodes@%s@%s@%lld", pkgNEVR, s, rpmProblemGetLong(p)); break;
-#else
- sv = newSVpvf("disknodes@%s@%s@%ld", pkgNEVR, s, rpmProblemGetLong(p)); break;
-#endif
-
+ sv = newSVpvf("diskspace@%s@%s@%lld", pkgNEVR, s, (uint64_t)rpmProblemGetLong(p)); break;
+ sv = newSVpvf("disknodes@%s@%s@%lld", pkgNEVR, s, (uint64_t)rpmProblemGetLong(p)); break;
case RPMPROB_REQUIRES:
sv = newSVpvf("requires@%s@%s", pkgNEVR, altNEVR+2); break;
@@ -1320,7 +1310,7 @@ ts_nosignature(rpmts ts) {
}
#if HAVE_RPM_RPMCB_H
-typedef unsigned long long rpmCallbackSize_t;
+typedef uint64_t rpmCallbackSize_t;
#else
typedef unsigned long rpmCallbackSize_t;
#endif