]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 27 Jan 2006 17:36:37 +0000 (17:36 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 27 Jan 2006 17:36:37 +0000 (17:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@458 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 926e6f8dd4de45d4c7ff6d5ca3f872dc495e8a4a..9b2778865ad162458c17c15f62bfa064b03e05f6 100644 (file)
@@ -89,7 +89,7 @@ SWITCH_DECLARE(switch_status) switch_ivr_record_file(switch_core_session *sessio
        
 
        while (switch_channel_get_state(channel) == CS_EXECUTE) {
-               int len;
+               size_t len;
 
                if (dtmf_callback) {
                        /*
@@ -110,7 +110,7 @@ SWITCH_DECLARE(switch_status) switch_ivr_record_file(switch_core_session *sessio
                        break;
                }
 
-               len = read_frame->datalen / 2;
+               len = (size_t) read_frame->datalen / 2;
                switch_core_file_write(&fh, read_frame->data, &len);
        }