aboutsummaryrefslogtreecommitdiff
path: root/src/copyin.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-06-28 09:27:35 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-06-28 09:27:35 +0000
commit622a2c5eee944c2149c2635bb56c5ac7071de1b8 (patch)
tree0a4c7854ba054c065af22001967688d9c7804b5c /src/copyin.c
parent51cd38216367428116f384fefa0ec2c87775ae42 (diff)
downloadcpio-622a2c5eee944c2149c2635bb56c5ac7071de1b8.tar.gz
cpio-622a2c5eee944c2149c2635bb56c5ac7071de1b8.tar.bz2
Number of blocks is size_t.
Diffstat (limited to 'src/copyin.c')
-rw-r--r--src/copyin.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/copyin.c b/src/copyin.c
index dfbd048..4ed8cd7 100644
--- a/src/copyin.c
+++ b/src/copyin.c
@@ -1571,9 +1571,12 @@ process_copy_in ()
}
if (!quiet_flag)
{
- int blocks;
+ size_t blocks;
blocks = (input_bytes + io_block_size - 1) / io_block_size;
- fprintf (stderr, ngettext ("%d block\n", "%d blocks\n", blocks), blocks);
+ fprintf (stderr,
+ ngettext ("%lu block\n", "%lu blocks\n",
+ (unsigned long) blocks),
+ (unsigned long) blocks);
}
}

Return to:

Send suggestions and report system problems to the System administrator.