aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-21 13:08:34 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-09-26 21:34:13 +0200
commit1f5c1775cd3d413a41578bde1ba0202bf4c40c14 (patch)
tree4bbcf66a379344f9d74df13bb52eb43f9f0f1116
parent7990496dcbdec56b192b8a0867f9fa26812b3dc0 (diff)
qemu-option: rename bool -> boolean
We need this to allow the use of <stdbool.h> Signed-off-by: Juan Quintela <quintela@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--qemu-option.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu-option.c b/qemu-option.c
index 9fe1f95479..0892286564 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: