write_recent_bytes (char *data, size_t bytes)
{
size_t blocks = bytes / BLOCKSIZE;
- size_t rest = bytes - blocks * BLOCKSIZE;
+ size_t rest = bytes % BLOCKSIZE;
write_recent_blocks ((union block *)data, blocks);
memcpy (new_record[new_blocks].buffer, data + blocks * BLOCKSIZE, rest);
/* FIXME: Should clean the routine before cleaning these variables :-( */
struct name *name;
off_t blocks_to_keep = 0;
- int kept_blocks_in_record;
+ ptrdiff_t kept_blocks_in_record;
name_gather ();
open_archive (ACCESS_UPDATE);
while (blocks_to_keep)
{
- int count;
+ ptrdiff_t count;
if (current_block == record_end)
{