diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-07 17:57:09 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-07 17:57:09 +0000 |
commit | 856ae5c3324abb8fe6d905262e1cc9f4437e719f (patch) | |
tree | 03c5f9e6554994c4b3144216154093facf8411a1 /block-raw-posix.c | |
parent | 669b92ed34588786bfa963982c0050b941292569 (diff) |
Fix a few Sparse warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7016 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-raw-posix.c')
-rw-r--r-- | block-raw-posix.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/block-raw-posix.c b/block-raw-posix.c index 50aad587dc..4da5ae4397 100644 --- a/block-raw-posix.c +++ b/block-raw-posix.c @@ -876,15 +876,15 @@ static void raw_flush(BlockDriverState *bs) } BlockDriver bdrv_raw = { - "raw", - sizeof(BDRVRawState), - NULL, /* no probe for protocols */ - raw_open, - NULL, - NULL, - raw_close, - raw_create, - raw_flush, + .format_name = "raw", + .instance_size = sizeof(BDRVRawState), + .bdrv_probe = NULL, /* no probe for protocols */ + .bdrv_open = raw_open, + .bdrv_read = raw_read, + .bdrv_write = raw_write, + .bdrv_close = raw_close, + .bdrv_create = raw_create, + .bdrv_flush = raw_flush, #ifdef CONFIG_AIO .bdrv_aio_read = raw_aio_read, @@ -893,8 +893,6 @@ BlockDriver bdrv_raw = { .aiocb_size = sizeof(RawAIOCB), #endif - .bdrv_read = raw_read, - .bdrv_write = raw_write, .bdrv_truncate = raw_truncate, .bdrv_getlength = raw_getlength, }; |