summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-04-18 12:23:18 +0000
committerOlivier Blin <oblin@mandriva.org>2005-04-18 12:23:18 +0000
commiteebffd08037fda59956159266976ab2aca35e274 (patch)
tree5e714aae741ccb50fb44339d07a51b3c0d7a9b9e /mdk-stage1
parentf66200250930267050b3f826ca7ff19e1bb2a2be (diff)
downloaddrakx-eebffd08037fda59956159266976ab2aca35e274.tar
drakx-eebffd08037fda59956159266976ab2aca35e274.tar.gz
drakx-eebffd08037fda59956159266976ab2aca35e274.tar.bz2
drakx-eebffd08037fda59956159266976ab2aca35e274.tar.xz
drakx-eebffd08037fda59956159266976ab2aca35e274.zip
move defines
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/config-stage1.h2
-rw-r--r--mdk-stage1/network.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/mdk-stage1/config-stage1.h b/mdk-stage1/config-stage1.h
index 6a67e34b6..99d773d67 100644
--- a/mdk-stage1/config-stage1.h
+++ b/mdk-stage1/config-stage1.h
@@ -97,8 +97,6 @@
#ifndef DISABLE_NETWORK
#define MIRRORLIST_HOST "www.mandrivalinux.com"
#define MIRRORLIST_PATH "/mirrorsfull.list"
-#define MIRRORLIST_MAX_ITEMS 500
-#define MIRRORLIST_MAX_MEDIA 10
#endif
#endif
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index a931ab8fb..a3ff5e696 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -695,6 +695,9 @@ static int mirrorlist_entry_split(const char *entry, char *mirror[4]) /* mirror
}
+#define MIRRORLIST_MAX_ITEMS 500
+#define MIRRORLIST_MAX_MEDIA 10
+
static int choose_mirror_from_host_list(char *mirrorlist[][4], const char *protocol, char *medium, char **selected_host, char **filepath)
{
enum return_type results;