Received: from eggs.gnu.org ([208.118.235.92]:54942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcSvz-00046h-OA for qemu-devel@nongnu.org; Wed, 15 May 2013 00:03:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcSvy-00043x-AD for qemu-devel@nongnu.org; Wed, 15 May 2013 00:03:23 -0400 Received: from [222.73.24.84] (port=39028 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcSvx-0003vb-V4 for qemu-devel@nongnu.org; Wed, 15 May 2013 00:03:22 -0400 From: liguang Date: Wed, 15 May 2013 12:01:38 +0800 Message-Id: <1368590499-11707-1-git-send-email-lig.fnst@cn.fujitsu.com> Subject: [Qemu-devel] [PATCH 1/2] vl: boolize acpi_enabled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , mst@redhat.com, Bruce Rogers , Gerd Hoffmann , Paolo Bonzini , liguang Signed-off-by: liguang --- include/hw/acpi/acpi.h | 2 +- vl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/hw/acpi/acpi.h b/include/hw/acpi/acpi.h index 635be7b..b01a9dc 100644 --- a/include/hw/acpi/acpi.h +++ b/include/hw/acpi/acpi.h @@ -161,7 +161,7 @@ void acpi_gpe_ioport_writeb(ACPIREGS *ar, uint32_t addr, uint32_t val); uint32_t acpi_gpe_ioport_readb(ACPIREGS *ar, uint32_t addr); /* acpi.c */ -extern int acpi_enabled; +extern bool acpi_enabled; extern char unsigned *acpi_tables; extern size_t acpi_tables_len; diff --git a/vl.c b/vl.c index 6e6225f..07acd5f 100644 --- a/vl.c +++ b/vl.c @@ -216,7 +216,7 @@ int smp_threads = 1; #ifdef CONFIG_VNC const char *vnc_display; #endif -int acpi_enabled = 1; +bool acpi_enabled = true; int no_hpet = 0; int fd_bootchk = 1; static int no_reboot; @@ -3651,7 +3651,7 @@ int main(int argc, char **argv, char **envp) #endif break; case QEMU_OPTION_no_acpi: - acpi_enabled = 0; + acpi_enabled = false; break; case QEMU_OPTION_no_hpet: no_hpet = 1; -- 1.7.2.5