unix_io.c (unix_write_blk): Fix up GCC -Wall nits.

bitmap-optimize
Theodore Ts'o 2003-01-22 18:30:01 -05:00
parent 4f489285b6
commit 23b7c8b886
2 changed files with 9 additions and 2 deletions

View File

@ -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,

View File

@ -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;