diff options
author | Theodore Ts'o <tytso@mit.edu> | 2014-07-26 00:49:14 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-07-26 00:49:14 -0400 |
commit | d4ecec45ab0d9d291bcac575988f68993ec98bd0 (patch) | |
tree | 70cb06e04f613295607f19c4de8cea2ada62ef17 /lib/ext2fs/dosio.c | |
parent | baab9f43bf0ecacd043dafb2de29163da5deaf24 (diff) | |
download | e2fsprogs-d4ecec45ab0d9d291bcac575988f68993ec98bd0.tar.gz |
libext2fs: use C99 initializers for the io_manager structure
Using C99 initializers makes the code a bit more readable, and it
avoids some gcc -Wall warnings regarding missing initializers.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs/dosio.c')
-rw-r--r-- | lib/ext2fs/dosio.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/ext2fs/dosio.c b/lib/ext2fs/dosio.c index 0defff8a..d0cf2690 100644 --- a/lib/ext2fs/dosio.c +++ b/lib/ext2fs/dosio.c @@ -62,15 +62,16 @@ static errcode_t dos_write_blk(io_channel channel, unsigned long block, static errcode_t dos_flush(io_channel channel); static struct struct_io_manager struct_dos_manager = { - EXT2_ET_MAGIC_IO_MANAGER, - "DOS I/O Manager", - dos_open, - dos_close, - dos_set_blksize, - dos_read_blk, - dos_write_blk, - dos_flush + .magic = EXT2_ET_MAGIC_IO_MANAGER, + .name = "DOS I/O Manager", + .open = dos_open, + .close = dos_close, + .set_blksize = dos_set_blksize, + .read_blk = dos_read_blk, + .write_blk = dos_write_blk, + .flush = dos_flush }; + io_manager dos_io_manager = &struct_dos_manager; /* |