summaryrefslogtreecommitdiff
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
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
-rw-r--r--ext2fs/dir.c14
-rw-r--r--ext2fs/ext2fs.c6
2 files changed, 10 insertions, 10 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;
diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c
index 64927f38..0857a749 100644
--- a/ext2fs/ext2fs.c
+++ b/ext2fs/ext2fs.c
@@ -1,6 +1,6 @@
/* Main entry point for the ext2 file system translator
- Copyright (C) 1994, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+ Copyright (C) 1994,95,96,97,98,99,2002 Free Software Foundation, Inc.
Converted for ext2fs by Miles Bader <miles@gnu.ai.mit.edu>
@@ -132,7 +132,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
/* Override the standard diskfs routine so we can add our own output. */
error_t
-diskfs_append_args (char **argz, unsigned *argz_len)
+diskfs_append_args (char **argz, size_t *argz_len)
{
error_t err;
@@ -175,7 +175,7 @@ main (int argc, char **argv)
if (store->size < SBLOCK_OFFS + SBLOCK_SIZE)
ext2_panic ("device too small for superblock (%Ld bytes)", store->size);
if (store->log2_blocks_per_page < 0)
- ext2_panic ("device block size (%u) greater than page size (%d)",
+ ext2_panic ("device block size (%zu) greater than page size (%zd)",
store->block_size, vm_page_size);
/* Map the entire disk. */