preparing for release of 2.0.3
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index 8546e4a..ed8d34e 100644 (file)
--- 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++;
+       }
+}