From f1b2f712a4f059734b8eaebc0e523061387aeb26 Mon Sep 17 00:00:00 2001 From: aliguori Date: Tue, 7 Apr 2009 18:23:51 +0000 Subject: more BlockDriver C99 initializers (Christoph Hellwig) Looks like the two bdrv_raw instances were missed last time. Signed-off-by: Christoph Hellwig Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7018 c046a42c-6fe2-441c-8c8c-71466251a162 --- block-raw-win32.c | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/block-raw-win32.c b/block-raw-win32.c index e7dc685134..b5287d2a56 100644 --- a/block-raw-win32.c +++ b/block-raw-win32.c @@ -229,20 +229,16 @@ static int raw_create(const char *filename, int64_t total_size, } BlockDriver bdrv_raw = { - "raw", - sizeof(BDRVRawState), - NULL, /* no probe for protocols */ - raw_open, - NULL, - NULL, - raw_close, - raw_create, - raw_flush, - - .bdrv_read = raw_read, - .bdrv_write = raw_write, - .bdrv_truncate = raw_truncate, - .bdrv_getlength = raw_getlength, + .format_name = "raw", + .instance_size = sizeof(BDRVRawState), + .bdrv_open = raw_open, + .bdrv_close = raw_close, + .bdrv_create = raw_create, + .bdrv_flush = raw_flush, + .bdrv_read = raw_read, + .bdrv_write = raw_write, + .bdrv_truncate = raw_truncate, + .bdrv_getlength = raw_getlength, }; /***********************************************/ -- cgit v1.2.3