Commit 41bd639b26b40a6e2b042b602bb8b161b0c06469

Authored by blueswir1
1 parent 34a3d239

Variable autostart is not used outside main()

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5419 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 2 changed files with 3 additions and 3 deletions
sysemu.h
... ... @@ -88,7 +88,6 @@ extern int cursor_hide;
88 88 extern int graphic_rotate;
89 89 extern int no_quit;
90 90 extern int semihosting_enabled;
91   -extern int autostart;
92 91 extern int old_param;
93 92 extern const char *bootp_filename;
94 93  
... ...
... ... @@ -230,7 +230,6 @@ int daemonize = 0;
230 230 const char *option_rom[MAX_OPTION_ROMS];
231 231 int nb_option_roms;
232 232 int semihosting_enabled = 0;
233   -int autostart = 1;
234 233 #ifdef TARGET_ARM
235 234 int old_param = 0;
236 235 #endif
... ... @@ -8502,6 +8501,7 @@ int main(int argc, char **argv)
8502 8501 int tb_size;
8503 8502 const char *pid_file = NULL;
8504 8503 VLANState *vlan;
  8504 + int autostart;
8505 8505  
8506 8506 LIST_INIT (&vm_change_state_head);
8507 8507 #ifndef _WIN32
... ... @@ -8573,7 +8573,8 @@ int main(int argc, char **argv)
8573 8573 nb_nics = 0;
8574 8574  
8575 8575 tb_size = 0;
8576   -
  8576 + autostart= 1;
  8577 +
8577 8578 optind = 1;
8578 8579 for(;;) {
8579 8580 if (optind >= argc)
... ...