mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add stdio.h include for msvc, remove truncating cast warning, change to dynamic runtime on msvc. You can not pass FILE * between mods with differrent runtimes on msvc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1125 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -164,7 +164,7 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel channel, char *file,
|
||||
|
||||
len = (uint32_t)(strlen(extra_fmt) + strlen(date) + strlen(filep) + 32 + strlen(func) + strlen(fmt));
|
||||
new_fmt = malloc(len+1);
|
||||
snprintf(new_fmt, len, extra_fmt, date, LEVELS[level], filep, line, func, (char) 128, fmt);
|
||||
snprintf(new_fmt, len, extra_fmt, date, LEVELS[level], filep, line, func, 128, fmt);
|
||||
fmt = new_fmt;
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ SWITCH_DECLARE(void) switch_log_printf(switch_text_channel channel, char *file,
|
||||
if (channel == SWITCH_CHANNEL_ID_LOG_CLEAN) {
|
||||
content = data;
|
||||
} else {
|
||||
content = strchr(data, (char)128);
|
||||
content = strchr(data, 128);
|
||||
}
|
||||
|
||||
if (channel == SWITCH_CHANNEL_ID_EVENT) {
|
||||
|
Reference in New Issue
Block a user