提交 dbed7e40 编写于 作者: B blueswir1

Make some variables static

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5377 c046a42c-6fe2-441c-8c8c-71466251a162
上级 7ca699c8
...@@ -166,20 +166,20 @@ ...@@ -166,20 +166,20 @@
const char *bios_dir = CONFIG_QEMU_SHAREDIR; const char *bios_dir = CONFIG_QEMU_SHAREDIR;
const char *bios_name = NULL; const char *bios_name = NULL;
void *ioport_opaque[MAX_IOPORTS]; static void *ioport_opaque[MAX_IOPORTS];
IOPortReadFunc *ioport_read_table[3][MAX_IOPORTS]; static IOPortReadFunc *ioport_read_table[3][MAX_IOPORTS];
IOPortWriteFunc *ioport_write_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 /* Note: drives_table[MAX_DRIVES] is a dummy block driver if none available
to store the VM snapshots */ to store the VM snapshots */
DriveInfo drives_table[MAX_DRIVES+1]; DriveInfo drives_table[MAX_DRIVES+1];
int nb_drives; int nb_drives;
/* point to the block driver where the snapshots are managed */ /* point to the block driver where the snapshots are managed */
BlockDriverState *bs_snapshots; static BlockDriverState *bs_snapshots;
int vga_ram_size; static int vga_ram_size;
enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB; enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB;
static DisplayState display_state; static DisplayState display_state;
int nographic; int nographic;
int curses; static int curses;
const char* keyboard_layout = NULL; const char* keyboard_layout = NULL;
int64_t ticks_per_sec; int64_t ticks_per_sec;
ram_addr_t ram_size; ram_addr_t ram_size;
...@@ -199,8 +199,8 @@ int graphic_width = 800; ...@@ -199,8 +199,8 @@ int graphic_width = 800;
int graphic_height = 600; int graphic_height = 600;
int graphic_depth = 15; int graphic_depth = 15;
#endif #endif
int full_screen = 0; static int full_screen = 0;
int no_frame = 0; static int no_frame = 0;
int no_quit = 0; int no_quit = 0;
CharDriverState *serial_hds[MAX_SERIAL_PORTS]; CharDriverState *serial_hds[MAX_SERIAL_PORTS];
CharDriverState *parallel_hds[MAX_PARALLEL_PORTS]; CharDriverState *parallel_hds[MAX_PARALLEL_PORTS];
...@@ -238,8 +238,8 @@ int alt_grab = 0; ...@@ -238,8 +238,8 @@ int alt_grab = 0;
unsigned int nb_prom_envs = 0; unsigned int nb_prom_envs = 0;
const char *prom_envs[MAX_PROM_ENVS]; const char *prom_envs[MAX_PROM_ENVS];
#endif #endif
int nb_drives_opt; static int nb_drives_opt;
struct drive_opt { static struct drive_opt {
const char *file; const char *file;
char opt[1024]; char opt[1024];
} drives_opt[MAX_DRIVES]; } drives_opt[MAX_DRIVES];
...@@ -253,8 +253,8 @@ static int icount_time_shift; ...@@ -253,8 +253,8 @@ static int icount_time_shift;
#define MAX_ICOUNT_SHIFT 10 #define MAX_ICOUNT_SHIFT 10
/* Compensate for varying guest execution speed. */ /* Compensate for varying guest execution speed. */
static int64_t qemu_icount_bias; static int64_t qemu_icount_bias;
QEMUTimer *icount_rt_timer; static QEMUTimer *icount_rt_timer;
QEMUTimer *icount_vm_timer; static QEMUTimer *icount_vm_timer;
uint8_t qemu_uuid[16]; uint8_t qemu_uuid[16];
...@@ -4214,7 +4214,7 @@ static void net_slirp_redir(const char *redir_str) ...@@ -4214,7 +4214,7 @@ static void net_slirp_redir(const char *redir_str)
#ifndef _WIN32 #ifndef _WIN32
char smb_dir[1024]; static char smb_dir[1024];
static void erase_dir(char *dir_name) static void erase_dir(char *dir_name)
{ {
...@@ -8104,7 +8104,7 @@ typedef struct QEMUOption { ...@@ -8104,7 +8104,7 @@ typedef struct QEMUOption {
int index; int index;
} QEMUOption; } QEMUOption;
const QEMUOption qemu_options[] = { static const QEMUOption qemu_options[] = {
{ "h", 0, QEMU_OPTION_h }, { "h", 0, QEMU_OPTION_h },
{ "help", 0, QEMU_OPTION_h }, { "help", 0, QEMU_OPTION_h },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册