Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MpglI-00013V-Em for qemu-devel@nongnu.org; Mon, 21 Sep 2009 07:08:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MpglD-00010Z-0b for qemu-devel@nongnu.org; Mon, 21 Sep 2009 07:08:51 -0400 Received: from [199.232.76.173] (port=47351 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MpglC-00010W-Ta for qemu-devel@nongnu.org; Mon, 21 Sep 2009 07:08:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44736) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MpglC-0001FK-A5 for qemu-devel@nongnu.org; Mon, 21 Sep 2009 07:08:46 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8LB8iPd011834 for ; Mon, 21 Sep 2009 07:08:44 -0400 From: Juan Quintela Date: Mon, 21 Sep 2009 13:08:34 +0200 Message-Id: <1253531314-18648-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH] qemu-option: rename bool -> boolean List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kraxel@redhat.com We need this to allow the use of Signed-off-by: Juan Quintela --- 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