mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Use an explicitly-sized type instead of daddr_t for on-disk block
numbers.
This commit is contained in:
parent
c4aa5b8efe
commit
95431d3d42
1 changed files with 2 additions and 2 deletions
|
|
@ -600,7 +600,7 @@ block_map(struct open_file *f, daddr_t file_block, daddr_t *disk_block_p)
|
|||
struct file *fp = (struct file *)f->f_fsdata;
|
||||
struct ext2fs *fs = fp->f_fs;
|
||||
daddr_t ind_block_num;
|
||||
daddr_t *ind_p;
|
||||
int32_t *ind_p;
|
||||
int idx, level;
|
||||
int error;
|
||||
|
||||
|
|
@ -674,7 +674,7 @@ block_map(struct open_file *f, daddr_t file_block, daddr_t *disk_block_p)
|
|||
fp->f_blkno[level] = ind_block_num;
|
||||
}
|
||||
|
||||
ind_p = (daddr_t *)fp->f_blk[level];
|
||||
ind_p = (int32_t *)fp->f_blk[level];
|
||||
|
||||
if (level > 0) {
|
||||
idx = file_block / fp->f_nindir[level - 1];
|
||||
|
|
|
|||
Loading…
Reference in a new issue