Patchwork [1/2] qom: add missing 'const' in documentation sample

login
register
mail settings
Submitter Hervé Poussineau
Date Aug. 2, 2012, 8:40 a.m.
Message ID <1343896830-3503-1-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/174703/
State New
Headers show

Comments

Hervé Poussineau - Aug. 2, 2012, 8:40 a.m.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 include/qemu/object.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Andreas Färber - Aug. 2, 2012, 3:22 p.m.
Am 02.08.2012 10:40, schrieb Hervé Poussineau:
> 
> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>

Acked-by: Andreas Färber <afaerber@suse.de>

/-F

> ---
>  include/qemu/object.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/qemu/object.h b/include/qemu/object.h
> index 8b17776..e0d326f 100644
> --- a/include/qemu/object.h
> +++ b/include/qemu/object.h
> @@ -65,7 +65,7 @@ typedef struct InterfaceInfo InterfaceInfo;
>   *     int reg0, reg1, reg2;
>   * } MyDevice;
>   *
> - * static TypeInfo my_device_info = {
> + * static const TypeInfo my_device_info = {
>   *     .name = TYPE_MY_DEVICE,
>   *     .parent = TYPE_DEVICE,
>   *     .instance_size = sizeof(MyDevice),

Patch

diff --git a/include/qemu/object.h b/include/qemu/object.h
index 8b17776..e0d326f 100644
--- a/include/qemu/object.h
+++ b/include/qemu/object.h
@@ -65,7 +65,7 @@  typedef struct InterfaceInfo InterfaceInfo;
  *     int reg0, reg1, reg2;
  * } MyDevice;
  *
- * static TypeInfo my_device_info = {
+ * static const TypeInfo my_device_info = {
  *     .name = TYPE_MY_DEVICE,
  *     .parent = TYPE_DEVICE,
  *     .instance_size = sizeof(MyDevice),