summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-04-25 14:35:05 +0000
committerOlivier Blin <oblin@mandriva.com>2007-04-25 14:35:05 +0000
commit41ecb8c6732babc99a43beaf4fd011e80fff5acb (patch)
tree3302e9c9d4cb0bfb84e28f38b360fab99ad8062c
parent6a7d14240bef13eb6e5ec8039eab4a8fd6fc4439 (diff)
downloaddrakx-41ecb8c6732babc99a43beaf4fd011e80fff5acb.tar
drakx-41ecb8c6732babc99a43beaf4fd011e80fff5acb.tar.gz
drakx-41ecb8c6732babc99a43beaf4fd011e80fff5acb.tar.bz2
drakx-41ecb8c6732babc99a43beaf4fd011e80fff5acb.tar.xz
drakx-41ecb8c6732babc99a43beaf4fd011e80fff5acb.zip
add lowercase() function (used to retrieve mirror list)
-rw-r--r--mdk-stage1/tools.c9
-rw-r--r--mdk-stage1/tools.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c
index baba72b0d..5f30c78ae 100644
--- a/mdk-stage1/tools.c
+++ b/mdk-stage1/tools.c
@@ -612,3 +612,12 @@ int scall_(int retval, char * msg, char * file, int line)
log_perror(tmp);
return retval;
}
+
+void lowercase(char *s)
+{
+ int i = 0;
+ while (s[i]) {
+ s[i] = tolower(s[i]);
+ i++;
+ }
+}
diff --git a/mdk-stage1/tools.h b/mdk-stage1/tools.h
index fd5236a93..78ed4b087 100644
--- a/mdk-stage1/tools.h
+++ b/mdk-stage1/tools.h
@@ -60,6 +60,7 @@ char * floppy_device(void);
char * asprintf_(const char *msg, ...);
int scall_(int retval, char * msg, char * file, int line);
#define scall(retval, msg) scall_(retval, msg, __FILE__, __LINE__)
+void lowercase(char *s);
struct param_elem
{