[Freeswitch-svn] [commit] r2754 - in freeswitch/trunk/src: . include
Freeswitch SVN
mikej at freeswitch.org
Tue Sep 19 15:09:10 EDT 2006
Author: mikej
Date: Tue Sep 19 15:09:10 2006
New Revision: 2754
Modified:
freeswitch/trunk/src/include/switch_channel.h
freeswitch/trunk/src/switch_channel.c
freeswitch/trunk/src/switch_core.c
Log:
tweak types
Modified: freeswitch/trunk/src/include/switch_channel.h
==============================================================================
--- freeswitch/trunk/src/include/switch_channel.h (original)
+++ freeswitch/trunk/src/include/switch_channel.h Tue Sep 19 15:09:10 2006
@@ -71,7 +71,7 @@
\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,
Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c (original)
+++ freeswitch/trunk/src/switch_channel.c Tue Sep 19 15:09:10 2006
@@ -402,7 +402,7 @@
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;
Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c (original)
+++ freeswitch/trunk/src/switch_core.c Tue Sep 19 15:09:10 2006
@@ -3248,7 +3248,7 @@
}
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))) {
More information about the Freeswitch-svn
mailing list