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;
}
}
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,
{
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);
/* 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)) {
{
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);
}
/* 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) {