if (session_uuid.length() > 0) {
/* This is a session event */
switch_core_session_t *session;
- switch_status_t status = SWITCH_STATUS_FALSE;
if ((session = switch_core_session_locate(session_uuid.c_str()))) {
- if ((status = switch_core_session_queue_private_event(session, event, SWITCH_FALSE)) == SWITCH_STATUS_SUCCESS) {
+ if (switch_core_session_queue_private_event(session, event, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS) {
info.GetReturnValue().Set(true);
} else {
info.GetReturnValue().Set(false);
JS_ODBC_FUNCTION_IMPL(NextRow)
{
HandleScope handle_scope(info.GetIsolate());
- int result = 0;
bool tf = false;
if (switch_odbc_handle_get_state(_handle) != SWITCH_ODBC_STATE_CONNECTED) {
}
if (_stmt) {
- if ((result = SQLFetch(_stmt) == SQL_SUCCESS)) {
+ if (SQLFetch(_stmt) == SQL_SUCCESS) {
tf = true;
}
}
HandleScope handle_scope(info.GetIsolate());
switch_channel_t *channel;
switch_time_t started;
- unsigned int elapsed;
int32_t timeout = 60000;
bool ret = true;
}
for (;;) {
- if (((elapsed = (unsigned int) ((switch_micro_time_now() - started) / 1000)) > (switch_time_t) timeout)
+ if (((/* Elapsed */(unsigned int)((switch_micro_time_now() - started) / 1000)) > (switch_time_t)timeout)
|| switch_channel_down(channel)) {
info.GetReturnValue().Set(false);
break;
HandleScope handle_scope(info.GetIsolate());
switch_channel_t *channel;
switch_time_t started;
- unsigned int elapsed;
int32_t timeout = 60000;
bool ret = true;
}
for (;;) {
- if (((elapsed = (unsigned int) ((switch_micro_time_now() - started) / 1000)) > (switch_time_t) timeout)
+ if (((/* Elapsed */(unsigned int)((switch_micro_time_now() - started) / 1000)) > (switch_time_t)timeout)
|| switch_channel_down(channel)) {
info.GetReturnValue().Set(false);
break;