From a9581d6300a6790b5b36e145103fb5a6a444449f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 18 Oct 2016 18:25:51 +0200 Subject: silent compilation warnings on x86_64 --- URPM.xs | 4 ++-- 1 file 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); -- cgit v1.2.1