[Freeswitch-svn] [commit] r13860 - freeswitch/trunk/src/mod/asr_tts/mod_unimrcp

FreeSWITCH SVN mikej at freeswitch.org
Thu Jun 18 21:42:39 PDT 2009


Author: mikej
Date: Thu Jun 18 23:42:39 2009
New Revision: 13860

Log:
msvc build fixes


Modified:
   freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c

Modified: freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c
==============================================================================
--- freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c	(original)
+++ freeswitch/trunk/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c	Thu Jun 18 23:42:39 2009
@@ -192,9 +192,9 @@
 	/** signaling for blocked readers/writers */
 	switch_thread_cond_t *cond;
 	/** total bytes written */
-	unsigned int write_bytes;
+	switch_size_t write_bytes;
 	/** total bytes read */
-	unsigned int read_bytes;
+	switch_size_t read_bytes;
 	/** number of bytes reader is waiting for */
 	switch_size_t waiting;
 	/** name of this queue (for logging) */
@@ -3388,6 +3388,7 @@
 {
 	switch_log_level_t level;
 	char log_message[4096] = { 0 }; /* same size as MAX_LOG_ENTRY_SIZE in UniMRCP apt_log.c */
+	size_t msglen;
 
 	if (switch_strlen_zero(format)) {
 		return TRUE;
@@ -3422,7 +3423,7 @@
 	
 	/* apr_vsnprintf supports format extensions required by UniMRCP */ 
 	apr_vsnprintf(log_message, sizeof(log_message), format, arg_ptr);
-	size_t msglen = strlen(log_message);
+	msglen = strlen(log_message);
 	if (msglen >= 2 && log_message[msglen - 2] == '\\' && log_message[msglen - 1] == 'n') {
 		/* log_message already ends in \n */
 		switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, "", line, id, level, "%s", log_message);



More information about the Freeswitch-svn mailing list