From 61df108c655f703ef246edbafc0eb302018b31e2 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 29 Jun 2004 08:02:10 +0000 Subject: variable declaration fixes (spotted by neofutur) --- mdk-stage1/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdk-stage1/directory.c') diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c index ac2a99937..30f3b29a5 100644 --- a/mdk-stage1/directory.c +++ b/mdk-stage1/directory.c @@ -163,6 +163,7 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me #ifdef MANDRAKE_MOVE if (access(IMAGE_LOCATION "/live_tree/etc/fstab", R_OK) && access(IMAGE_LOCATION "/live_tree.clp", R_OK)) { #else + char p; if (access(IMAGE_LOCATION LIVE_LOCATION, R_OK)) { #endif stg1_error_message("I can't find the " DISTRIB_NAME " Distribution in the specified directory. " @@ -173,7 +174,6 @@ enum return_type try_with_directory(char *directory, char *method_live, char *me return RETURN_ERROR; } #ifndef MANDRAKE_MOVE - char p; if (readlink(IMAGE_LOCATION LIVE_LOCATION "/usr/bin/runinstall2", &p, 1) != 1) { stg1_error_message("The " DISTRIB_NAME " Distribution seems to be copied on a Windows partition. " "You need more memory to perform an installation from a Windows partition. " -- cgit v1.2.1