From: Juan Quintela Date: Mon, 21 Sep 2009 11:08:34 +0000 (+0200) Subject: qemu-option: rename bool -> boolean X-Git-Tag: v0.12.0-rc0~1023 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1f5c1775cd3d413a41578bde1ba0202bf4c40c14;p=qemu.git qemu-option: rename bool -> boolean We need this to allow the use of Signed-off-by: Juan Quintela Acked-by: Gerd Hoffmann Signed-off-by: Aurelien Jarno --- diff --git a/qemu-option.c b/qemu-option.c index 9fe1f9547..089228656 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: