X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/874895d51a4b65e39762f06eea84b7d4a7755a3f..e095b568d0d402a606394892cd106e9cf93ebd77:/util.c diff --git a/util.c b/util.c index 8546e4a7..ed8d34e2 100644 --- a/util.c +++ b/util.c @@ -515,7 +515,6 @@ void glob_expand(char **argv, int *argc, int maxargs) glob_t globbuf; int i; - rprintf(FINFO,"glob(%s) -> %d\n", argv[*argc], globbuf.gl_pathc); memset(&globbuf, 0, sizeof(globbuf)); glob(argv[*argc], 0, NULL, &globbuf); if (globbuf.gl_pathc == 0) { @@ -532,3 +531,15 @@ void glob_expand(char **argv, int *argc, int maxargs) (*argc) += i; #endif } + + +/******************************************************************* + convert a string to lower case +********************************************************************/ +void strlower(char *s) +{ + while (*s) { + if (isupper(*s)) *s = tolower(*s); + s++; + } +}