From dc8cb51400abed19d6bb4e8ec5e27ba31d0be645 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 4 May 2006 16:01:38 +0000 Subject: [PATCH] fix types for msvc git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1348 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_loadable_module.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index 640d5aaaa3..586e1e86c2 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -188,7 +188,7 @@ static switch_status_t switch_loadable_module_process(char *key, switch_loadable switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Adding File Format '%s'\n", ptr->extens[i]); if (switch_event_create(&event, SWITCH_EVENT_MODULE_LOAD) == SWITCH_STATUS_SUCCESS) { switch_event_add_header(event, SWITCH_STACK_BOTTOM, "type", "file"); - switch_event_add_header(event, SWITCH_STACK_BOTTOM, "name", "%s", ptr->interface_name); + switch_event_add_header(event, SWITCH_STACK_BOTTOM, "name", "%s", ptr->extens[i]); switch_event_fire(&event); } switch_core_hash_insert(loadable_modules.file_hash, (char *) ptr->extens[i], (void *) ptr); @@ -570,15 +570,15 @@ SWITCH_DECLARE(switch_codec_interface_t *) switch_loadable_module_get_codec_inte { char altname[256] = ""; switch_codec_interface_t *codec; - int x; + switch_size_t x; if (!(codec = switch_core_hash_find(loadable_modules.codec_hash, name))) { for(x = 0; x < strlen(name); x++) { - altname[x] = toupper(name[x]); + altname[x] = (char)toupper(name[x]); } if (!(codec = switch_core_hash_find(loadable_modules.codec_hash, altname))) { for(x = 0; x < strlen(name); x++) { - altname[x] = tolower(name[x]); + altname[x] = (char)tolower(name[x]); } codec = switch_core_hash_find(loadable_modules.codec_hash, altname); }