[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/5] eliminate arch_config_name variable
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH 2/5] eliminate arch_config_name variable |
Date: |
Wed, 18 Apr 2012 17:02:37 -0300 |
Not needed anymore, as the code that uses the variable is already inside
arch_init.c.
Signed-off-by: Eduardo Habkost <address@hidden>
---
arch_init.c | 3 +--
arch_init.h | 2 --
2 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/arch_init.c b/arch_init.c
index 4008115..152cbbb 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -54,7 +54,6 @@ int graphic_height = 600;
int graphic_depth = 15;
#endif
-const char arch_config_name[] = CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH
".conf";
#if defined(TARGET_ALPHA)
#define QEMU_ARCH QEMU_ARCH_ALPHA
@@ -122,7 +121,7 @@ int qemu_read_default_config_files(void)
return ret;
}
- ret = qemu_read_config_file(arch_config_name);
+ ret = qemu_read_config_file(CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH
".conf");
if (ret < 0 && ret != -ENOENT) {
return ret;
}
diff --git a/arch_init.h b/arch_init.h
index 329faf7..495871b 100644
--- a/arch_init.h
+++ b/arch_init.h
@@ -1,8 +1,6 @@
#ifndef QEMU_ARCH_INIT_H
#define QEMU_ARCH_INIT_H
-extern const char arch_config_name[];
-
enum {
QEMU_ARCH_ALL = -1,
QEMU_ARCH_ALPHA = 1,
--
1.7.3.2
- [Qemu-devel] [PATCH 0/5] -no-user-config option, move CPU models to /usr/share, Eduardo Habkost, 2012/04/18
- [Qemu-devel] [PATCH 2/5] eliminate arch_config_name variable,
Eduardo Habkost <=
- [Qemu-devel] [PATCH 3/5] move list of default config files to an array, Eduardo Habkost, 2012/04/18
- [Qemu-devel] [PATCH 1/5] move code to read default config files to a separate function, Eduardo Habkost, 2012/04/18
- [Qemu-devel] [PATCH 4/5] implement -no-user-config command-line option, Eduardo Habkost, 2012/04/18
- [Qemu-devel] [PATCH 5/5] move CPU definitions to /usr/share/qemu/cpus-x86_64.conf, Eduardo Habkost, 2012/04/18
- Re: [Qemu-devel] [PATCH 0/5] -no-user-config option, move CPU models to /usr/share, Jiri Denemark, 2012/04/19