aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-05 09:56:21 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-05 09:56:21 +0000
commit41bd639b26b40a6e2b042b602bb8b161b0c06469 (patch)
tree9bef63c0cfb9d16fd97ff763eb7fa8fa84ba91e8 /vl.c
parent34a3d2399b8429c393935c4310dafff8f541776b (diff)
Variable autostart is not used outside main()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5419 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index cd55b9eb5e..c94fdc02b6 100644
--- a/vl.c
+++ b/vl.c
@@ -230,7 +230,6 @@ int daemonize = 0;
const char *option_rom[MAX_OPTION_ROMS];
int nb_option_roms;
int semihosting_enabled = 0;
-int autostart = 1;
#ifdef TARGET_ARM
int old_param = 0;
#endif
@@ -8502,6 +8501,7 @@ int main(int argc, char **argv)
int tb_size;
const char *pid_file = NULL;
VLANState *vlan;
+ int autostart;
LIST_INIT (&vm_change_state_head);
#ifndef _WIN32
@@ -8573,7 +8573,8 @@ int main(int argc, char **argv)
nb_nics = 0;
tb_size = 0;
-
+ autostart= 1;
+
optind = 1;
for(;;) {
if (optind >= argc)