diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-03-06 14:24:41 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2008-03-06 14:24:41 +0000 |
commit | 9490883fb84eba1f34dc248c79e16c22f76510dd (patch) | |
tree | 1960cddbd2b259ca60f60af00fe38516baf75e35 | |
parent | 9cd6498e87f71bc4ca9295871bebf72ebdf6b219 (diff) | |
download | perl-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.xs | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -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 |