]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use consistent var types.
authorMichael Jerris <mike@jerris.com>
Mon, 19 Jan 2009 17:27:42 +0000 (17:27 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 19 Jan 2009 17:27:42 +0000 (17:27 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11284 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_shout/mod_shout.c

index 32df81e939b2b50fc426e94e092dd6d41b27f8eb..14d0b0b59993f5f9f4c27ef7633af4e829005208 100644 (file)
@@ -911,7 +911,7 @@ static switch_status_t shout_file_write(switch_file_handle_t *handle, void *data
        shout_context_t *context;
        int rlen = 0;
        int16_t *audio = data;
-       int nsamples = *len;
+       size_t nsamples = *len;
 
        if (!handle) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error no handle\n");
@@ -965,7 +965,7 @@ static switch_status_t shout_file_write(switch_file_handle_t *handle, void *data
        }
 
        if (handle->channels == 2) {
-               int i, j = 0;
+               switch_size_t i, j = 0;
                
                if (context->llen < nsamples) {
                        context->l = switch_core_alloc(context->memory_pool, nsamples * 2);