qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] missing block-raw-win32.c C99 initializer conversion
Date: Tue, 7 Apr 2009 20:09:51 +0200	[thread overview]
Message-ID: <20090407180951.GB16658@lst.de> (raw)
In-Reply-To: <20090406120252.GA7316@lst.de>

Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: qemu/block-raw-win32.c
===================================================================
--- qemu.orig/block-raw-win32.c	2009-04-07 20:03:18.757570009 +0200
+++ qemu/block-raw-win32.c	2009-04-07 20:05:14.313445383 +0200
@@ -229,20 +229,16 @@ static int raw_create(const char *filena
 }
 
 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,
 };
 
 /***********************************************/

  parent reply	other threads:[~2009-04-07 18:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-06 12:02 [Qemu-devel] [PATCH] more BlockDriver C99 initializers Christoph Hellwig
2009-04-06 12:19 ` Avi Kivity
2009-04-06 12:25   ` Christoph Hellwig
2009-04-07 18:07 ` Christoph Hellwig
2009-04-07 18:09 ` Christoph Hellwig [this message]
2009-04-07 18:24 ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090407180951.GB16658@lst.de \
    --to=hch@lst.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).