]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak from Carlos
authorBrian West <brian@freeswitch.org>
Tue, 4 Nov 2008 19:31:49 +0000 (19:31 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 4 Nov 2008 19:31:49 +0000 (19:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10240 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_utils.h

index 32a553faa1768402bf69484c40c63f1024faf905..b910b404a85710cbba30e384d76ef612a2b1f841 100644 (file)
@@ -303,7 +303,7 @@ static inline char *switch_lc_strdup(const char *it)
        if (it) {
                dup = strdup(it);
                for(p = dup; p && *p; p++) {
-                       *p = tolower(*p);
+                       *p = (char) tolower(*p);
                }
                return dup;
        }
@@ -320,7 +320,7 @@ static inline char *switch_uc_strdup(const char *it)
        if (it) {
                dup = strdup(it);
                for(p = dup; p && *p; p++) {
-                       *p = toupper(*p);
+                       *p = (char) toupper(*p);
                }
                return dup;
        }