From patchwork Wed May 2 16:07:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 156485 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 03616B6FA5 for ; Thu, 3 May 2012 02:08:03 +1000 (EST) Received: from localhost ([::1]:44057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPc5w-0003Xp-Je for incoming@patchwork.ozlabs.org; Wed, 02 May 2012 12:08:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPc5K-0002Yi-T3 for qemu-devel@nongnu.org; Wed, 02 May 2012 12:07:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPc5C-0008JN-Gc for qemu-devel@nongnu.org; Wed, 02 May 2012 12:07:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPc5C-0008J2-89 for qemu-devel@nongnu.org; Wed, 02 May 2012 12:07:14 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q42G7Bjn010365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 May 2012 12:07:11 -0400 Received: from blackpad.lan.raisama.net (ovpn-116-79.ams2.redhat.com [10.36.116.79]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q42G754v010435; Wed, 2 May 2012 12:07:06 -0400 Received: by blackpad.lan.raisama.net (Postfix, from userid 500) id B8A7520065B; Wed, 2 May 2012 13:07:30 -0300 (BRT) From: Eduardo Habkost To: qemu-devel@nongnu.org, Anthony Liguori Date: Wed, 2 May 2012 13:07:28 -0300 Message-Id: <1335974850-30180-5-git-send-email-ehabkost@redhat.com> In-Reply-To: <1335974850-30180-1-git-send-email-ehabkost@redhat.com> References: <1335974850-30180-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: libvir-list@redhat.com, Jiri Denemark Subject: [Qemu-devel] [PATCH qemu 4/6] vl.c: change 'defconfig' variable to bool (v2) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Changes v1 -> v2: - Actually change the variable type declaration to 'bool' Signed-off-by: Eduardo Habkost --- vl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vl.c b/vl.c index 1e5e593..eb3e088 100644 --- a/vl.c +++ b/vl.c @@ -2279,7 +2279,7 @@ int main(int argc, char **argv, char **envp) #ifdef CONFIG_VNC int show_vnc_port = 0; #endif - int defconfig = 1; + bool defconfig = true; const char *log_mask = NULL; const char *log_file = NULL; GMemVTable mem_trace = { @@ -2346,7 +2346,7 @@ int main(int argc, char **argv, char **envp) popt = lookup_opt(argc, argv, &optarg, &optind); switch (popt->index) { case QEMU_OPTION_nodefconfig: - defconfig=0; + defconfig = false; break; } }