From f46306945c95adc9a6232ce86f908f2a51a771dd Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 6 May 2005 06:30:51 +0000 Subject: Stage 1 compilation fixes for gcc 4.0 : * more casts signed<->unsigned types * make choose_iso_in_directory()'s return type "void" * change order of .h files in network.c so strndup is included correctly * newt: initialize some variables properly * compile pcmcia and ppp with -Wno-deprecated-declarations, since they use deprecated types such as u_int32_t --- mdk-stage1/directory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mdk-stage1/directory.c') diff --git a/mdk-stage1/directory.c b/mdk-stage1/directory.c index 3f0c4ed0a..6115b600c 100644 --- a/mdk-stage1/directory.c +++ b/mdk-stage1/directory.c @@ -45,7 +45,7 @@ char * extract_list_directory(char * direct) return strdup(tmp); } -static enum return_type choose_iso_in_directory(char *directory, char *location_full) +static void choose_iso_in_directory(char *directory, char *location_full) { char **file; char *stage2_isos[100] = { "Use directory as a mirror tree", "-----" }; @@ -90,7 +90,7 @@ static enum return_type choose_iso_in_directory(char *directory, char *location_ DISTRIB_NAME " Distribution.", stage2_isos, file); if (results == RETURN_BACK) { - return RETURN_BACK; + return; } else if (results == RETURN_OK) { if (!strcmp(*file, stage2_isos[0])) { /* use directory as a mirror tree */ -- cgit v1.2.1