mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-19 14:36:38 -05:00
Further conversions from 32 to 64 bits
This commit is contained in:
parent
bbd3c23cd2
commit
f40b2decdb
30 changed files with 251 additions and 156 deletions
|
|
@ -511,11 +511,11 @@ const char* file_name(const struct snapraid_file* file)
|
|||
return r;
|
||||
}
|
||||
|
||||
unsigned file_block_size(struct snapraid_file* file, block_off_t file_pos, unsigned block_size)
|
||||
size_t file_block_size(struct snapraid_file* file, block_off_t file_pos, size_t block_size)
|
||||
{
|
||||
/* if it's the last block */
|
||||
if (file_pos + 1 == file->blockmax) {
|
||||
unsigned block_remainder;
|
||||
size_t block_remainder;
|
||||
if (file->size == 0)
|
||||
return 0;
|
||||
block_remainder = file->size % block_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue