diff options
author | Theodore Ts'o <tytso@mit.edu> | 2002-02-20 01:06:25 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2002-02-20 01:06:25 -0500 |
commit | f12e285ffd9ff0b37c4f91d5ab2b021ed1eb43be (patch) | |
tree | 609e6c0c8b5fb5cf552586053ada48fe5eb653c8 /lib/ext2fs/unix_io.c | |
parent | 7d4343d0d05ce69e0a72da5ac34eea415d4c789f (diff) | |
download | e2fsprogs-f12e285ffd9ff0b37c4f91d5ab2b021ed1eb43be.tar.gz |
Add new inode I/O abstraction interface which exports an inode as
an I/O object.
Export ext2_file_flush as a public interface.
Also minor cleanups to tighten code in other I/O abstractions, and to
mark a void * pointer as const in the ext2_file_write interface.
Diffstat (limited to 'lib/ext2fs/unix_io.c')
-rw-r--r-- | lib/ext2fs/unix_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index 7fa4b1a2..0f993e49 100644 --- a/lib/ext2fs/unix_io.c +++ b/lib/ext2fs/unix_io.c @@ -385,8 +385,8 @@ static errcode_t unix_close(io_channel channel) if (close(data->dev) < 0) retval = errno; free_cache(channel, data); - if (channel->private_data) - ext2fs_free_mem((void **) &channel->private_data); + + ext2fs_free_mem((void **) &channel->private_data); if (channel->name) ext2fs_free_mem((void **) &channel->name); ext2fs_free_mem((void **) &channel); |