diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-04-25 14:35:05 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-04-25 14:35:05 +0000 |
commit | 41ecb8c6732babc99a43beaf4fd011e80fff5acb (patch) | |
tree | 3302e9c9d4cb0bfb84e28f38b360fab99ad8062c /mdk-stage1 | |
parent | 6a7d14240bef13eb6e5ec8039eab4a8fd6fc4439 (diff) | |
download | drakx-backup-do-not-use-41ecb8c6732babc99a43beaf4fd011e80fff5acb.tar drakx-backup-do-not-use-41ecb8c6732babc99a43beaf4fd011e80fff5acb.tar.gz drakx-backup-do-not-use-41ecb8c6732babc99a43beaf4fd011e80fff5acb.tar.bz2 drakx-backup-do-not-use-41ecb8c6732babc99a43beaf4fd011e80fff5acb.tar.xz drakx-backup-do-not-use-41ecb8c6732babc99a43beaf4fd011e80fff5acb.zip |
add lowercase() function (used to retrieve mirror list)
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/tools.c | 9 | ||||
-rw-r--r-- | mdk-stage1/tools.h | 1 |
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 { |