aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-10-18 18:25:51 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-18 18:25:54 +0200
commita9581d6300a6790b5b36e145103fb5a6a444449f (patch)
treea45a4cbf66954e338901400a148792708e453b83
parent447a0bf336a269f34de9366161601f39e5046a9a (diff)
downloadperl-URPM-a9581d6300a6790b5b36e145103fb5a6a444449f.tar
perl-URPM-a9581d6300a6790b5b36e145103fb5a6a444449f.tar.gz
perl-URPM-a9581d6300a6790b5b36e145103fb5a6a444449f.tar.bz2
perl-URPM-a9581d6300a6790b5b36e145103fb5a6a444449f.tar.xz
perl-URPM-a9581d6300a6790b5b36e145103fb5a6a444449f.zip
silent compilation warnings on x86_64
-rw-r--r--URPM.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 26dcd79..f9ab5a0 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -770,7 +770,7 @@ pack_header(const URPM__Package pkg) {
const char *p = buff;
const char *nvr = headerGetAsString(pkg->h, RPMTAG_NVR);
const char *arch = get_arch(pkg->h);
- p += 1 + snprintf(buff, sizeof(buff), "%s.%s@%llu@%llu@%s", nvr, arch,
+ p += 1 + snprintf(buff, sizeof(buff), "%s.%s@%" PRIu64 "@%" PRIu64 "@%s", nvr, arch,
get_int(pkg->h, RPMTAG_EPOCH), get_int2(pkg->h, RPMTAG_LONGSIZE, RPMTAG_SIZE),
get_name(pkg->h, RPMTAG_GROUP));
pkg->info = memcpy(malloc(p-buff), buff, p-buff);
@@ -2134,7 +2134,7 @@ Pkg_build_info(pkg, fileno, provides_files=NULL, recommends=0)
if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
}
if (pkg->filesize) {
- size = snprintf(buff, sizeof(buff), "@filesize@%llu\n", pkg->filesize);
+ size = snprintf(buff, sizeof(buff), "@filesize@%" PRIu64 "\n", pkg->filesize);
if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
}
size = snprintf(buff, sizeof(buff), "@info@%s\n", pkg->info);