diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-07 22:00:29 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-07 22:00:29 +0000 |
commit | e60f469ca80e0b39b7cf85aef0d3b1ff32a67cba (patch) | |
tree | bcdf18a2fbd141e692dd2bd3175ee2ae0d11eb2c /block-cow.c | |
parent | aaedd1f9f302c0f5fd4554c10e85ae63603e3cb5 (diff) |
Use C99 initializers for BlockDriver methods
Consistently use the C99 named initializer format for the BlockDriver
methods to make the method table more readable and more easily
extensible.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6768 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-cow.c')
-rw-r--r-- | block-cow.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/block-cow.c b/block-cow.c index 9e7b64602f..b9a1971b17 100644 --- a/block-cow.c +++ b/block-cow.c @@ -253,15 +253,15 @@ static void cow_flush(BlockDriverState *bs) } BlockDriver bdrv_cow = { - "cow", - sizeof(BDRVCowState), - cow_probe, - cow_open, - cow_read, - cow_write, - cow_close, - cow_create, - cow_flush, - cow_is_allocated, + .format_name = "cow", + .instance_size = sizeof(BDRVCowState), + .bdrv_probe = cow_probe, + .bdrv_open = cow_open, + .bdrv_read = cow_read, + .bdrv_write = cow_write, + .bdrv_close = cow_close, + .bdrv_create = cow_create, + .bdrv_flush = cow_flush, + .bdrv_is_allocated = cow_is_allocated, }; #endif |