summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-06-04 17:26:06 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-06-23 14:16:50 +0200
commit840ffcb30faf335dbec4a0f02614c202ae113ea2 (patch)
treef0d2ff1931f36fa5fac85e5e62ca98496e5c1100 /ext2fs
parent38d064eab719b8334144094d6499c24718a255c1 (diff)
ext2fs: use correct type for block numbers
* ext2fs/dir.c (count_dirents): Use block_t for nb. (diskfs_get_directs): Likewise for blkno, nblks.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index 337314c1..470b7e9e 100644
--- a/ext2fs/dir.c
+++ b/ext2fs/dir.c
@@ -823,7 +823,7 @@ diskfs_drop_dirstat (struct node *dp, struct dirstat *ds)
write the answer down in its dirents array. As a side affect
fill BUF with the block. */
static error_t
-count_dirents (struct node *dp, int nb, char *buf)
+count_dirents (struct node *dp, block_t nb, char *buf)
{
size_t amt;
char *offinblk;
@@ -868,8 +868,8 @@ diskfs_get_directs (struct node *dp,
vm_size_t bufsiz,
int *amt)
{
- int blkno;
- int nblks;
+ block_t blkno;
+ block_t nblks;
int curentry;
char buf[DIRBLKSIZ];
char *bufp;