Skip to content

Commit d29345d

Browse files
committed
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 <[email protected]>
1 parent cfc58cf commit d29345d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/sysemu/sysemu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ extern int vga_interface_type;
155155
extern int graphic_width;
156156
extern int graphic_height;
157157
extern int graphic_depth;
158-
extern DisplayType display_type;
159158
extern int display_opengl;
160159
extern const char *keyboard_layout;
161160
extern int win2k_install_hack;

vl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ static const char *data_dir[16];
129129
static int data_dir_idx;
130130
const char *bios_name = NULL;
131131
enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB;
132-
DisplayType display_type = DT_DEFAULT;
133132
int request_opengl = -1;
134133
int display_opengl;
135134
static int display_remote;
@@ -2963,6 +2962,7 @@ int main(int argc, char **argv, char **envp)
29632962
bool defconfig = true;
29642963
bool userconfig = true;
29652964
bool nographic = false;
2965+
DisplayType display_type = DT_DEFAULT;
29662966
const char *log_mask = NULL;
29672967
const char *log_file = NULL;
29682968
char *trace_file = NULL;

0 commit comments

Comments
 (0)