]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix missing casts from recent change
authorPádraig Brady <P@draigBrady.com>
Fri, 28 Nov 2014 10:25:22 +0000 (10:25 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 28 Nov 2014 10:25:22 +0000 (10:25 +0000)
* 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

src/dd.c

index 0b5a4b20ab59543147de19e8b78eddf29447b534..f830ef2dfb69f485d70e03cf14b5c10a5a6dfbfe 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -697,7 +697,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 */
 
@@ -720,7 +720,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