vl.c: change 'defconfig' variable to bool (v2)
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 2 May 2012 16:07:28 +0000 (13:07 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 10 May 2012 17:37:56 +0000 (12:37 -0500)
Changes v1 -> v2:
 - Actually change the variable type declaration to 'bool'

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c

diff --git a/vl.c b/vl.c
index 5d1d0f99932fc3d3c855462f6dcbc814e82016d6..4667bd239988372d6e202389b2ee179bfa1d2d56 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2283,7 +2283,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 = {
@@ -2350,7 +2350,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;
             }
         }