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-vpc.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-vpc.c')
-rw-r--r-- | block-vpc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/block-vpc.c b/block-vpc.c index e353e31a8e..7ae520235f 100644 --- a/block-vpc.c +++ b/block-vpc.c @@ -582,12 +582,12 @@ static void vpc_close(BlockDriverState *bs) } BlockDriver bdrv_vpc = { - "vpc", - sizeof(BDRVVPCState), - vpc_probe, - vpc_open, - vpc_read, - vpc_write, - vpc_close, - vpc_create, + .format_name = "vpc", + .instance_size = sizeof(BDRVVPCState), + .bdrv_probe = vpc_probe, + .bdrv_open = vpc_open, + .bdrv_read = vpc_read, + .bdrv_write = vpc_write, + .bdrv_close = vpc_close, + .bdrv_create = vpc_create, }; |