summaryrefslogtreecommitdiff
path: root/ext2fs/dir.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-02 21:40:56 +0000
committerRoland McGrath <roland@gnu.org>2002-06-02 21:40:56 +0000
commit80f99c5c8c5825c80c0f083f9b33d7f6af246b24 (patch)
treee6830032d1d59311f5b1791f362bafdb5deda6bc /ext2fs/dir.c
parentc04f4d2ad369bcd6ddfefd8424991432a9374695 (diff)
2002-05-29 Roland McGrath <roland@frob.com>
* dir.c (dirscanblock): Use %z format. (diskfs_get_directs): Likewise. * ext2fs.c (main): Likewise. * hyper.c (get_hypermetadata): Likewise. * pager.c (pager_unlock_page): Likewise. 2002-05-28 Roland McGrath <roland@frob.com> * ext2fs.c (diskfs_append_args): unsigned -> size_t * dir.c (count_dirents): int -> size_t (diskfs_get_directs): u_int -> size_t
Diffstat (limited to 'ext2fs/dir.c')
-rw-r--r--ext2fs/dir.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index 51d68539..964240ba 100644
--- a/ext2fs/dir.c
+++ b/ext2fs/dir.c
@@ -1,6 +1,6 @@
/* Directory management routines
- Copyright (C) 1994,95,96,97,98,99,2000,01 Free Software Foundation, Inc.
+ Copyright (C) 1994,95,96,97,98,99,2000,01,02 Free Software Foundation, Inc.
Converted for ext2fs by Miles Bader <miles@gnu.org>
This program is free software; you can redistribute it and/or
@@ -411,7 +411,7 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int idx,
|| EXT2_DIR_REC_LEN (entry->name_len) > entry->rec_len
|| memchr (entry->name, '\0', entry->name_len))
{
- ext2_warning ("bad directory entry: inode: %d offset: %d",
+ ext2_warning ("bad directory entry: inode: %d offset: %zd",
dp->cache_id,
currentoff - blockaddr + idx * DIRBLKSIZ);
return ENOENT;
@@ -819,7 +819,7 @@ diskfs_drop_dirstat (struct node *dp, struct dirstat *ds)
static error_t
count_dirents (struct node *dp, int nb, char *buf)
{
- int amt;
+ size_t amt;
char *offinblk;
struct ext2_dir_entry_2 *entry;
int count = 0;
@@ -858,7 +858,7 @@ diskfs_get_directs (struct node *dp,
int entry,
int nentries,
char **data,
- u_int *datacnt,
+ size_t *datacnt,
vm_size_t bufsiz,
int *amt)
{
@@ -873,7 +873,7 @@ diskfs_get_directs (struct node *dp,
char *datap;
struct ext2_dir_entry_2 *entryp;
int allocsize;
- int checklen;
+ size_t checklen;
struct dirent *userp;
nblks = dp->dn_stat.st_size/DIRBLKSIZ;
@@ -1049,7 +1049,7 @@ diskfs_get_directs (struct node *dp,
if (entryp->rec_len == 0)
{
- ext2_warning ("zero length directory entry: inode: %d offset: %d",
+ ext2_warning ("zero length directory entry: inode: %d offset: %zd",
dp->cache_id,
blkno * DIRBLKSIZ + bufp - buf);
return EIO;
@@ -1063,7 +1063,7 @@ diskfs_get_directs (struct node *dp,
}
else if (bufp - buf > DIRBLKSIZ)
{
- ext2_warning ("directory entry too long: inode: %d offset: %d",
+ ext2_warning ("directory entry too long: inode: %d offset: %zd",
dp->cache_id,
blkno * DIRBLKSIZ + bufp - buf - entryp->rec_len);
return EIO;