char cast on tolower & toupper
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4218 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
403243980e
commit
87d5a3bbb4
|
@ -343,10 +343,10 @@ static switch_status_t setup_formats(void)
|
|||
map->uext = switch_core_permanent_strdup(info.extension);
|
||||
map->format = info.format;
|
||||
for(p = map->ext; *p; p++) {
|
||||
*p = tolower(*p);
|
||||
*p = (char)tolower(*p);
|
||||
}
|
||||
for(p = map->uext; *p; p++) {
|
||||
*p = toupper(*p);
|
||||
*p = (char)toupper(*p);
|
||||
}
|
||||
switch_core_hash_insert(globals.format_hash, map->ext, map);
|
||||
switch_core_hash_insert(globals.format_hash, map->uext, map);
|
||||
|
|
Loading…
Reference in New Issue