Commit 41bd639b26b40a6e2b042b602bb8b161b0c06469
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,7 +88,6 @@ extern int cursor_hide; | ||
| 88 | extern int graphic_rotate; | 88 | extern int graphic_rotate; |
| 89 | extern int no_quit; | 89 | extern int no_quit; |
| 90 | extern int semihosting_enabled; | 90 | extern int semihosting_enabled; |
| 91 | -extern int autostart; | ||
| 92 | extern int old_param; | 91 | extern int old_param; |
| 93 | extern const char *bootp_filename; | 92 | extern const char *bootp_filename; |
| 94 | 93 |
vl.c
| @@ -230,7 +230,6 @@ int daemonize = 0; | @@ -230,7 +230,6 @@ int daemonize = 0; | ||
| 230 | const char *option_rom[MAX_OPTION_ROMS]; | 230 | const char *option_rom[MAX_OPTION_ROMS]; |
| 231 | int nb_option_roms; | 231 | int nb_option_roms; |
| 232 | int semihosting_enabled = 0; | 232 | int semihosting_enabled = 0; |
| 233 | -int autostart = 1; | ||
| 234 | #ifdef TARGET_ARM | 233 | #ifdef TARGET_ARM |
| 235 | int old_param = 0; | 234 | int old_param = 0; |
| 236 | #endif | 235 | #endif |
| @@ -8502,6 +8501,7 @@ int main(int argc, char **argv) | @@ -8502,6 +8501,7 @@ int main(int argc, char **argv) | ||
| 8502 | int tb_size; | 8501 | int tb_size; |
| 8503 | const char *pid_file = NULL; | 8502 | const char *pid_file = NULL; |
| 8504 | VLANState *vlan; | 8503 | VLANState *vlan; |
| 8504 | + int autostart; | ||
| 8505 | 8505 | ||
| 8506 | LIST_INIT (&vm_change_state_head); | 8506 | LIST_INIT (&vm_change_state_head); |
| 8507 | #ifndef _WIN32 | 8507 | #ifndef _WIN32 |
| @@ -8573,7 +8573,8 @@ int main(int argc, char **argv) | @@ -8573,7 +8573,8 @@ int main(int argc, char **argv) | ||
| 8573 | nb_nics = 0; | 8573 | nb_nics = 0; |
| 8574 | 8574 | ||
| 8575 | tb_size = 0; | 8575 | tb_size = 0; |
| 8576 | - | 8576 | + autostart= 1; |
| 8577 | + | ||
| 8577 | optind = 1; | 8578 | optind = 1; |
| 8578 | for(;;) { | 8579 | for(;;) { |
| 8579 | if (optind >= argc) | 8580 | if (optind >= argc) |