aboutsummaryrefslogtreecommitdiff
path: root/block-dmg.c
diff options
context:
space:
mode:
Diffstat (limited to 'block-dmg.c')
-rw-r--r--block-dmg.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/block-dmg.c b/block-dmg.c
index df32bfbccb..82f6de1946 100644
--- a/block-dmg.c
+++ b/block-dmg.c
@@ -284,11 +284,10 @@ static void dmg_close(BlockDriverState *bs)
}
BlockDriver bdrv_dmg = {
- "dmg",
- sizeof(BDRVDMGState),
- dmg_probe,
- dmg_open,
- dmg_read,
- NULL,
- dmg_close,
+ .format_name = "dmg",
+ .instance_size = sizeof(BDRVDMGState),
+ .bdrv_probe = dmg_probe,
+ .bdrv_open = dmg_open,
+ .bdrv_read = dmg_read,
+ .bdrv_close = dmg_close,
};