Commit f1b2f712a4f059734b8eaebc0e523061387aeb26
1 parent
7442511c
more BlockDriver C99 initializers (Christoph Hellwig)
Looks like the two bdrv_raw instances were missed last time. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7018 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
10 additions
and
14 deletions
block-raw-win32.c
... | ... | @@ -229,20 +229,16 @@ static int raw_create(const char *filename, int64_t total_size, |
229 | 229 | } |
230 | 230 | |
231 | 231 | BlockDriver bdrv_raw = { |
232 | - "raw", | |
233 | - sizeof(BDRVRawState), | |
234 | - NULL, /* no probe for protocols */ | |
235 | - raw_open, | |
236 | - NULL, | |
237 | - NULL, | |
238 | - raw_close, | |
239 | - raw_create, | |
240 | - raw_flush, | |
241 | - | |
242 | - .bdrv_read = raw_read, | |
243 | - .bdrv_write = raw_write, | |
244 | - .bdrv_truncate = raw_truncate, | |
245 | - .bdrv_getlength = raw_getlength, | |
232 | + .format_name = "raw", | |
233 | + .instance_size = sizeof(BDRVRawState), | |
234 | + .bdrv_open = raw_open, | |
235 | + .bdrv_close = raw_close, | |
236 | + .bdrv_create = raw_create, | |
237 | + .bdrv_flush = raw_flush, | |
238 | + .bdrv_read = raw_read, | |
239 | + .bdrv_write = raw_write, | |
240 | + .bdrv_truncate = raw_truncate, | |
241 | + .bdrv_getlength = raw_getlength, | |
246 | 242 | }; |
247 | 243 | |
248 | 244 | /***********************************************/ | ... | ... |