forked from Mirrors/freeswitch
FSBUILD-221 - fix several trivial warnings
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16013 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
87477e308d
commit
2ccca75215
@ -136,7 +136,7 @@ SWITCH_STANDARD_APP(bcast_function)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (switch_mcast_hops(socket, mcast_ttl) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_mcast_hops(socket, (uint8_t)mcast_ttl) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Mutlicast TTL set failed\n");
|
||||
goto fail;
|
||||
}
|
||||
|
@ -2070,7 +2070,7 @@ switch_status_t sofia_glue_tech_set_codec(private_object_t *tech_pvt, int force)
|
||||
}
|
||||
if (strcasecmp(tech_pvt->read_impl.iananame, tech_pvt->iananame) ||
|
||||
tech_pvt->read_impl.samples_per_second != tech_pvt->rm_rate ||
|
||||
tech_pvt->codec_ms != tech_pvt->read_impl.microseconds_per_packet / 1000) {
|
||||
tech_pvt->codec_ms != (uint32_t)tech_pvt->read_impl.microseconds_per_packet / 1000) {
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG, "Changing Codec from %s@%dms to %s@%dms\n",
|
||||
tech_pvt->read_impl.iananame, tech_pvt->read_impl.microseconds_per_packet / 1000,
|
||||
|
@ -288,7 +288,7 @@ static JSBool db_bind_text(JSContext * cx, JSObject * obj, uintN argc, jsval * a
|
||||
{
|
||||
struct db_obj *dbo = JS_GetPrivate(cx, obj);
|
||||
JSBool status;
|
||||
uint32 param_index = -1;
|
||||
int32 param_index = -1;
|
||||
char *param_value = NULL;
|
||||
|
||||
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
||||
@ -312,7 +312,7 @@ static JSBool db_bind_text(JSContext * cx, JSObject * obj, uintN argc, jsval * a
|
||||
|
||||
|
||||
/* convert args */
|
||||
status = JS_ValueToECMAUint32(cx, argv[0], ¶m_index);
|
||||
status = JS_ValueToECMAUint32(cx, argv[0], &(uint32)param_index);
|
||||
switch_assert(status == JS_TRUE);
|
||||
param_value = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
|
||||
if ((param_index < 1) || (NULL == param_value)) {
|
||||
@ -334,8 +334,8 @@ static JSBool db_bind_int(JSContext * cx, JSObject * obj, uintN argc, jsval * ar
|
||||
{
|
||||
struct db_obj *dbo = JS_GetPrivate(cx, obj);
|
||||
JSBool status;
|
||||
uint32 param_index = -1;
|
||||
uint32 param_value = -1;
|
||||
int32 param_index = -1;
|
||||
int32 param_value = -1;
|
||||
|
||||
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
||||
|
||||
@ -356,9 +356,9 @@ static JSBool db_bind_int(JSContext * cx, JSObject * obj, uintN argc, jsval * ar
|
||||
}
|
||||
|
||||
/* convert args */
|
||||
status = JS_ValueToECMAUint32(cx, argv[0], ¶m_index);
|
||||
status = JS_ValueToECMAUint32(cx, argv[0], &(uint32)param_index);
|
||||
switch_assert(status == JS_TRUE);
|
||||
status = JS_ValueToECMAUint32(cx, argv[1], ¶m_value);
|
||||
status = JS_ValueToECMAUint32(cx, argv[1], &(uint32)param_value);
|
||||
switch_assert(status == JS_TRUE);
|
||||
|
||||
if (param_index < 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user