All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qemu-option: rename bool -> boolean
@ 2009-09-21 11:08 Juan Quintela
  2009-09-21 11:12 ` [Qemu-devel] " Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Juan Quintela @ 2009-09-21 11:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel

We need this to allow the use of <stdbool.h>

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 qemu-option.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/qemu-option.c b/qemu-option.c
index 88298e4..65b5ab3 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -472,7 +472,7 @@ struct QemuOpt {

     QemuOptDesc  *desc;
     union {
-        int      bool;
+        int      boolean;
         uint64_t uint;
     } value;

@@ -512,7 +512,7 @@ int qemu_opt_get_bool(QemuOpts *opts, const char *name, int defval)
     if (opt == NULL)
         return defval;
     assert(opt->desc && opt->desc->type == QEMU_OPT_BOOL);
-    return opt->value.bool;
+    return opt->value.boolean;
 }

 uint64_t qemu_opt_get_number(QemuOpts *opts, const char *name, uint64_t defval)
@@ -544,7 +544,7 @@ static int qemu_opt_parse(QemuOpt *opt)
         /* nothing */
         return 0;
     case QEMU_OPT_BOOL:
-        return parse_option_bool(opt->name, opt->str, &opt->value.bool);
+        return parse_option_bool(opt->name, opt->str, &opt->value.boolean);
     case QEMU_OPT_NUMBER:
         return parse_option_number(opt->name, opt->str, &opt->value.uint);
     case QEMU_OPT_SIZE:
-- 
1.6.2.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Qemu-devel] Re: [PATCH] qemu-option: rename bool -> boolean
  2009-09-21 11:08 [Qemu-devel] [PATCH] qemu-option: rename bool -> boolean Juan Quintela
@ 2009-09-21 11:12 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2009-09-21 11:12 UTC (permalink / raw)
  To: Juan Quintela; +Cc: qemu-devel

On 09/21/09 13:08, Juan Quintela wrote:
> We need this to allow the use of<stdbool.h>

Fine with me.

Acked-by: Gerd Hoffmann <kraxel@redhat.com>

cheers,
   Gerd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-21 11:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-21 11:08 [Qemu-devel] [PATCH] qemu-option: rename bool -> boolean Juan Quintela
2009-09-21 11:12 ` [Qemu-devel] " Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.