From e018944725f9e9c821942debf0d86f37f18aeb77 Mon Sep 17 00:00:00 2001 From: =?latin1?q?P=E1draig=20Brady?=
Date: Fri, 28 Nov 2014 10:25:22 +0000 Subject: build: fix missing casts from recent change * src/dd.c (alloc_[io]buf): I committed a stale patch that omitted the casts needed on 32 bit. Identified by http://hydra.nixos.org/build/17610188 (cherry picked from commit 458c5cbcff4dd855cc4b90d1523aaa4ee646eea7) --- src/dd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dd.c b/src/dd.c index 9e17f02..a5673a5 100644 --- a/src/dd.c +++ b/src/dd.c @@ -666,7 +666,7 @@ alloc_ibuf (void) if (!real_buf) error (EXIT_FAILURE, 0, _("memory exhausted by input buffer of size %"PRIuMAX" bytes (%s)"), - input_blocksize, human_size (input_blocksize)); + (uintmax_t) input_blocksize, human_size (input_blocksize)); real_buf += SWAB_ALIGN_OFFSET; /* allow space for swab */ @@ -689,7 +689,7 @@ alloc_obuf (void) error (EXIT_FAILURE, 0, _("memory exhausted by output buffer of size %"PRIuMAX " bytes (%s)"), - output_blocksize, human_size (output_blocksize)); + (uintmax_t) output_blocksize, human_size (output_blocksize)); obuf = ptr_align (real_obuf, page_size); } else -- 1.7.12.1