* ext2fs/dir.c (count_dirents): Use off_t for nb.
(diskfs_get_directs): Likewise for blkno, nblks.
---
 ext2fs/dir.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index a7eeaaa..0597500 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, off_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;
+  off_t blkno;
+  off_t nblks;
   int curentry;
   char buf[DIRBLKSIZ];
   char *bufp;
-- 
2.0.0.rc2


Reply via email to