From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmQLg-000429-HQ for qemu-devel@nongnu.org; Sun, 05 Oct 2008 05:56:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmQLf-00041x-5u for qemu-devel@nongnu.org; Sun, 05 Oct 2008 05:56:23 -0400 Received: from [199.232.76.173] (port=60920 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmQLf-00041u-1E for qemu-devel@nongnu.org; Sun, 05 Oct 2008 05:56:23 -0400 Received: from savannah.gnu.org ([199.232.41.3]:58123 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KmQLe-0008GR-Px for qemu-devel@nongnu.org; Sun, 05 Oct 2008 05:56:22 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KmQLd-00084Q-Uj for qemu-devel@nongnu.org; Sun, 05 Oct 2008 09:56:22 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KmQLd-00084M-L7 for qemu-devel@nongnu.org; Sun, 05 Oct 2008 09:56:21 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sun, 05 Oct 2008 09:56:21 +0000 Subject: [Qemu-devel] [5419] Variable autostart is not used outside main() Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5419 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5419 Author: blueswir1 Date: 2008-10-05 09:56:21 +0000 (Sun, 05 Oct 2008) Log Message: ----------- Variable autostart is not used outside main() Modified Paths: -------------- trunk/sysemu.h trunk/vl.c Modified: trunk/sysemu.h =================================================================== --- trunk/sysemu.h 2008-10-04 20:43:39 UTC (rev 5418) +++ trunk/sysemu.h 2008-10-05 09:56:21 UTC (rev 5419) @@ -88,7 +88,6 @@ extern int graphic_rotate; extern int no_quit; extern int semihosting_enabled; -extern int autostart; extern int old_param; extern const char *bootp_filename; Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-10-04 20:43:39 UTC (rev 5418) +++ trunk/vl.c 2008-10-05 09:56:21 UTC (rev 5419) @@ -230,7 +230,6 @@ 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 tb_size; const char *pid_file = NULL; VLANState *vlan; + int autostart; LIST_INIT (&vm_change_state_head); #ifndef _WIN32 @@ -8573,7 +8573,8 @@ nb_nics = 0; tb_size = 0; - + autostart= 1; + optind = 1; for(;;) { if (optind >= argc)