diff options
author | iedowse <iedowse@FreeBSD.org> | 2002-05-19 10:50:38 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2002-05-19 10:50:38 +0000 |
commit | 434d378ed720d84f1682fa62c38e47950837b115 (patch) | |
tree | 9c99b45ed97fc56d94df987f2a32c9d9bacab65a /lib/libstand | |
parent | 6992c205d1860c0b531a50b769949e085b0bbc1f (diff) | |
download | FreeBSD-src-434d378ed720d84f1682fa62c38e47950837b115.zip FreeBSD-src-434d378ed720d84f1682fa62c38e47950837b115.tar.gz |
Use an explicitly-sized type instead of daddr_t for on-disk block
numbers.
Diffstat (limited to 'lib/libstand')
-rw-r--r-- | lib/libstand/ext2fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/ext2fs.c b/lib/libstand/ext2fs.c index b025f64..c233bde 100644 --- a/lib/libstand/ext2fs.c +++ b/lib/libstand/ext2fs.c @@ -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]; |