From cd74bf6501a4f9ed83c96c866deeb005f9a61496 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 19 Sep 2006 19:09:10 +0000 Subject: [PATCH] tweak types git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2754 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_channel.h | 2 +- src/switch_channel.c | 2 +- src/switch_core.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/switch_channel.h b/src/include/switch_channel.h index 1f1d52fc97..90c3e0011a 100644 --- a/src/include/switch_channel.h +++ b/src/include/switch_channel.h @@ -71,7 +71,7 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_get_state(switch_channel_t \param channel channel to test \return true if the channel is ready */ -SWITCH_DECLARE(unsigned int) switch_channel_ready(switch_channel_t *channel); +SWITCH_DECLARE(uint8_t) switch_channel_ready(switch_channel_t *channel); SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_state(switch_channel_t *channel, diff --git a/src/switch_channel.c b/src/switch_channel.c index 85e183d38b..a74484ed93 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -402,7 +402,7 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_get_state(switch_channel_t return state; } -SWITCH_DECLARE(unsigned int) switch_channel_ready(switch_channel_t *channel) +SWITCH_DECLARE(uint8_t) switch_channel_ready(switch_channel_t *channel) { assert(channel != NULL); return (channel->state > CS_RING && channel->state < CS_HANGUP && !switch_test_flag(channel, CF_TRANSFER)) ? 1 : 0; diff --git a/src/switch_core.c b/src/switch_core.c index 5519314064..0028e774a4 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -3248,7 +3248,7 @@ static void *SWITCH_THREAD_FUNC switch_core_sql_thread(switch_thread_t *thread, } itterations++; - newlen = strlen(sql) + 2; + newlen = (uint32_t)strlen(sql) + 2; if (len + newlen > sql_len) { sql_len = len + SQLLEN; if (!(sqlbuf = realloc(sqlbuf, sql_len))) {