From 859e1316cd74fc5060cf2ed5f7c6cc1b511600e4 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 26 Nov 2007 23:46:03 +0000 Subject: [PATCH] windows build tweaks git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6400 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_module_interfaces.h | 2 +- src/mod/applications/mod_voicemail/mod_voicemail.c | 2 +- src/switch_ivr_play_say.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/switch_module_interfaces.h b/src/include/switch_module_interfaces.h index 40a870ce40..4af805f116 100644 --- a/src/include/switch_module_interfaces.h +++ b/src/include/switch_module_interfaces.h @@ -270,7 +270,7 @@ struct switch_file_handle { /*! is the file seekable */ int seekable; /*! the sample count of the file */ - unsigned int sample_count; + switch_size_t sample_count; /*! the speed of the file playback */ int speed; /*! the handle's memory pool */ diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 68b1996478..f5e6ad77af 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -804,7 +804,7 @@ typedef enum { static uint32_t DEFAULT_DIR_PERMS = SWITCH_FPROT_UREAD | SWITCH_FPROT_UWRITE | SWITCH_FPROT_UEXECUTE | SWITCH_FPROT_GREAD | SWITCH_FPROT_GEXECUTE; -static switch_status_t create_file(switch_core_session_t *session, vm_profile_t *profile, char *macro_name, char *file_path, uint32_t *message_len) +static switch_status_t create_file(switch_core_session_t *session, vm_profile_t *profile, char *macro_name, char *file_path, switch_size_t *message_len) { switch_channel_t *channel; switch_status_t status = SWITCH_STATUS_SUCCESS; diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index d7304b7b70..54dbce6cdf 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -554,8 +554,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se } if (!switch_test_flag(fh, SWITCH_FILE_PAUSE)) { - len = (switch_size_t) read_frame->datalen / 2; int16_t *data = read_frame->data; + len = (switch_size_t) read_frame->datalen / 2; if (resampler) { resampler->from_len = switch_short_to_float(read_frame->data, resampler->from, (int) len);