diff options
author | Theodore Ts'o <tytso@mit.edu> | 2003-01-22 18:30:01 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2003-01-22 18:30:01 -0500 |
commit | 23b7c8b88673248b1f93abc717943867ad037bb4 (patch) | |
tree | 97c93ed2d4ae6bd0aa743f91a71e75a706e568d4 /lib/ext2fs | |
parent | 4f489285b63a9146b0408d0672d53d4871735f96 (diff) | |
download | e2fsprogs-23b7c8b88673248b1f93abc717943867ad037bb4.tar.gz |
unix_io.c (unix_write_blk): Fix up GCC -Wall nits.
Diffstat (limited to 'lib/ext2fs')
-rw-r--r-- | lib/ext2fs/ChangeLog | 4 | ||||
-rw-r--r-- | lib/ext2fs/unix_io.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index 4f3a9c1d..bd5b9e3b 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -1,3 +1,7 @@ +2003-01-22 Theodore Ts'o <tytso@mit.edu> + + * unix_io.c (unix_write_blk): Fix up GCC -Wall nits. + 2003-01-21 Theodore Ts'o <tytso@mit.edu> * fileio.c (ext2fs_file_read, ext2_file_lseek, diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index a76f9d81..31231366 100644 --- a/lib/ext2fs/unix_io.c +++ b/lib/ext2fs/unix_io.c @@ -77,6 +77,9 @@ static errcode_t unix_flush(io_channel channel); static errcode_t unix_write_byte(io_channel channel, unsigned long offset, int size, const void *data); +static void reuse_cache(io_channel channel, struct unix_private_data *data, + struct unix_cache *cache, unsigned long block); + static struct struct_io_manager struct_unix_manager = { EXT2_ET_MAGIC_IO_MANAGER, "Unix I/O Manager", @@ -247,7 +250,7 @@ static struct unix_cache *find_cached_block(io_channel channel, /* * Reuse a particular cache entry for another block. */ -void reuse_cache(io_channel channel, struct unix_private_data *data, +static void reuse_cache(io_channel channel, struct unix_private_data *data, struct unix_cache *cache, unsigned long block) { if (cache->dirty && cache->in_use) @@ -509,7 +512,7 @@ static errcode_t unix_write_blk(io_channel channel, unsigned long block, { struct unix_private_data *data; struct unix_cache *cache, *reuse; - errcode_t retval = 0, retval2; + errcode_t retval = 0; const char *cp; int writethrough; |