]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
unix_io.c (unix_write_blk): Fix up GCC -Wall nits.
authorTheodore Ts'o <tytso@mit.edu>
Wed, 22 Jan 2003 23:30:01 +0000 (18:30 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Jan 2003 23:30:01 +0000 (18:30 -0500)
lib/ext2fs/ChangeLog
lib/ext2fs/unix_io.c

index 4f3a9c1df67924ffe7dfd4b38d45d5d978f011b8..bd5b9e3bbc556c7d4a0095c0222c535f0958ea2c 100644 (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,
index a76f9d81193f2a36e39f08867f55eb64a33f9024..312313662bd161c384b3a3d3c1a01c61cc69865b 100644 (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;