summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/modules.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 9b9303e93..72190819a 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -241,9 +241,6 @@ static enum insmod_return insmod_with_deps(const char * mod_name, char * options
enum insmod_return my_insmod(const char * mod_name, enum driver_type type, char * options)
{
-#ifndef DISABLE_NETWORK
- char alias[500];
-#endif
int i;
#ifndef DISABLE_NETWORK
char ** net_devices = NULL; /* fucking compiler */
@@ -271,6 +268,7 @@ enum insmod_return my_insmod(const char * mod_name, enum driver_type type, char
if (type == NETWORK_DEVICES) {
char ** new_net_devices = get_net_devices();
while (new_net_devices && *new_net_devices) {
+ char alias[500];
char ** ptr = net_devices;
while (ptr && *ptr) {
if (!strcmp(*new_net_devices, *ptr))