From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl7WX-0003bf-0J for qemu-devel@nongnu.org; Wed, 01 Oct 2008 15:38:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl7WW-0003bP-MD for qemu-devel@nongnu.org; Wed, 01 Oct 2008 15:38:12 -0400 Received: from [199.232.76.173] (port=59338 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl7WW-0003bM-Bh for qemu-devel@nongnu.org; Wed, 01 Oct 2008 15:38:12 -0400 Received: from savannah.gnu.org ([199.232.41.3]:53834 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 1Kl7WV-0007sJ-9k for qemu-devel@nongnu.org; Wed, 01 Oct 2008 15:38:11 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Kl7WU-0003eD-NV for qemu-devel@nongnu.org; Wed, 01 Oct 2008 19:38:10 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Kl7WU-0003do-0M for qemu-devel@nongnu.org; Wed, 01 Oct 2008 19:38:10 +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: Wed, 01 Oct 2008 19:38:10 +0000 Subject: [Qemu-devel] [5377] Make some variables static 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: 5377 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5377 Author: blueswir1 Date: 2008-10-01 19:38:09 +0000 (Wed, 01 Oct 2008) Log Message: ----------- Make some variables static Modified Paths: -------------- trunk/vl.c Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2008-10-01 19:06:48 UTC (rev 5376) +++ trunk/vl.c 2008-10-01 19:38:09 UTC (rev 5377) @@ -166,20 +166,20 @@ const char *bios_dir = CONFIG_QEMU_SHAREDIR; const char *bios_name = NULL; -void *ioport_opaque[MAX_IOPORTS]; -IOPortReadFunc *ioport_read_table[3][MAX_IOPORTS]; -IOPortWriteFunc *ioport_write_table[3][MAX_IOPORTS]; +static void *ioport_opaque[MAX_IOPORTS]; +static IOPortReadFunc *ioport_read_table[3][MAX_IOPORTS]; +static IOPortWriteFunc *ioport_write_table[3][MAX_IOPORTS]; /* Note: drives_table[MAX_DRIVES] is a dummy block driver if none available to store the VM snapshots */ DriveInfo drives_table[MAX_DRIVES+1]; int nb_drives; /* point to the block driver where the snapshots are managed */ -BlockDriverState *bs_snapshots; -int vga_ram_size; +static BlockDriverState *bs_snapshots; +static int vga_ram_size; enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB; static DisplayState display_state; int nographic; -int curses; +static int curses; const char* keyboard_layout = NULL; int64_t ticks_per_sec; ram_addr_t ram_size; @@ -199,8 +199,8 @@ int graphic_height = 600; int graphic_depth = 15; #endif -int full_screen = 0; -int no_frame = 0; +static int full_screen = 0; +static int no_frame = 0; int no_quit = 0; CharDriverState *serial_hds[MAX_SERIAL_PORTS]; CharDriverState *parallel_hds[MAX_PARALLEL_PORTS]; @@ -238,8 +238,8 @@ unsigned int nb_prom_envs = 0; const char *prom_envs[MAX_PROM_ENVS]; #endif -int nb_drives_opt; -struct drive_opt { +static int nb_drives_opt; +static struct drive_opt { const char *file; char opt[1024]; } drives_opt[MAX_DRIVES]; @@ -253,8 +253,8 @@ #define MAX_ICOUNT_SHIFT 10 /* Compensate for varying guest execution speed. */ static int64_t qemu_icount_bias; -QEMUTimer *icount_rt_timer; -QEMUTimer *icount_vm_timer; +static QEMUTimer *icount_rt_timer; +static QEMUTimer *icount_vm_timer; uint8_t qemu_uuid[16]; @@ -4214,7 +4214,7 @@ #ifndef _WIN32 -char smb_dir[1024]; +static char smb_dir[1024]; static void erase_dir(char *dir_name) { @@ -8104,7 +8104,7 @@ int index; } QEMUOption; -const QEMUOption qemu_options[] = { +static const QEMUOption qemu_options[] = { { "h", 0, QEMU_OPTION_h }, { "help", 0, QEMU_OPTION_h },