diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-07-07 13:50:22 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-07-07 13:50:22 -0400 |
commit | d32c915abfb224f6f6659e9cada7e9f759b7e3d2 (patch) | |
tree | a2eeecfaa15d5115ef64927db1c1daed3451fbee /lib/ext2fs/unix_io.c | |
parent | 062cc472e6cae60a1fa43976bcc6ff39f8351ccb (diff) | |
download | e2fsprogs-d32c915abfb224f6f6659e9cada7e9f759b7e3d2.tar.gz |
libext2fs: Fix gcc -Wall warnings
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs/unix_io.c')
-rw-r--r-- | lib/ext2fs/unix_io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index dddaf6f2..c1d05615 100644 --- a/lib/ext2fs/unix_io.c +++ b/lib/ext2fs/unix_io.c @@ -161,12 +161,13 @@ static errcode_t unix_get_stats(io_channel channel, io_stats *stats) static errcode_t raw_read_blk(io_channel channel, struct unix_private_data *data, unsigned long long block, - int count, void *buf) + int count, void *bufv) { errcode_t retval; ssize_t size; ext2_loff_t location; int actual = 0; + unsigned char *buf = bufv; size = (count < 0) ? -count : count * channel->block_size; data->io_stats.bytes_read += size; @@ -221,12 +222,13 @@ error_out: static errcode_t raw_write_blk(io_channel channel, struct unix_private_data *data, unsigned long long block, - int count, const void *buf) + int count, const void *bufv) { ssize_t size; ext2_loff_t location; int actual = 0; errcode_t retval; + const unsigned char *buf = bufv; if (count == 1) size = channel->block_size; |