aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2016-04-19 16:55:26 -0300
committerEduardo Habkost <ehabkost@redhat.com>2016-05-20 14:28:54 -0300
commitd29345d011114b90f0a6871fb0d46a7741c6c33c (patch)
treee1684dfa2ca418808d37843357425a75e10f6a0c /vl.c
parentcfc58cf37362a931990efc75f3f580dfec49ac1e (diff)
downloadqemu-d29345d011114b90f0a6871fb0d46a7741c6c33c.zip
qemu-d29345d011114b90f0a6871fb0d46a7741c6c33c.tar.gz
qemu-d29345d011114b90f0a6871fb0d46a7741c6c33c.tar.bz2
vl: Make display_type a local variable
Now display_type is only used inside main(), and don't need to be a global variable. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 35ed954..0d10ceb 100644
--- a/vl.c
+++ b/vl.c
@@ -129,7 +129,6 @@ static const char *data_dir[16];
static int data_dir_idx;
const char *bios_name = NULL;
enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB;
-DisplayType display_type = DT_DEFAULT;
int request_opengl = -1;
int display_opengl;
static int display_remote;
@@ -2963,6 +2962,7 @@ int main(int argc, char **argv, char **envp)
bool defconfig = true;
bool userconfig = true;
bool nographic = false;
+ DisplayType display_type = DT_DEFAULT;
const char *log_mask = NULL;
const char *log_file = NULL;
char *trace_file = NULL;