fix clang build
This commit is contained in:
parent
c517be4330
commit
8d30c18c5a
|
@ -3028,7 +3028,7 @@ ldl_status ldl_session_get_candidates(ldl_session_t *session, ldl_transport_type
|
|||
{
|
||||
assert(tport < LDL_TPORT_MAX);
|
||||
|
||||
if (session->candidate_len) {
|
||||
if (session->candidate_len[tport]) {
|
||||
*candidates = session->candidates[tport];
|
||||
*len = session->candidate_len[tport];
|
||||
return LDL_STATUS_SUCCESS;
|
||||
|
|
|
@ -2785,7 +2785,7 @@ int skypopen_partner_handle_ring(private_t *tech_pvt)
|
|||
} else {
|
||||
ERRORA("no session\n", SKYPOPEN_P_LOG);
|
||||
}
|
||||
} else if (!tech_pvt || !tech_pvt->skype_call_id) {
|
||||
} else if (!tech_pvt || !tech_pvt->skype_call_id[0]) {
|
||||
ERRORA("No Call ID?\n", SKYPOPEN_P_LOG);
|
||||
} else {
|
||||
DEBUGA_SKYPE("We're in a call now (%s), let's refuse this one (%s)\n", SKYPOPEN_P_LOG, tech_pvt->skype_call_id, id);
|
||||
|
@ -2884,7 +2884,7 @@ int skypopen_answer(private_t *tech_pvt)
|
|||
DEBUGA_SKYPE
|
||||
("NEW! name: %s, state: %d, value=%s, tech_pvt->callid_number=%s, tech_pvt->skype_user=%s\n",
|
||||
SKYPOPEN_P_LOG, tech_pvt->name, tech_pvt->interface_state, value, tech_pvt->callid_number, tech_pvt->skype_user);
|
||||
} else if (!tech_pvt || !tech_pvt->skype_call_id) {
|
||||
} else if (!tech_pvt || !tech_pvt->skype_call_id[0]) {
|
||||
ERRORA("No Call ID?\n", SKYPOPEN_P_LOG);
|
||||
} else {
|
||||
DEBUGA_SKYPE("We're in a call now (%s), let's refuse this one (%s)\n", SKYPOPEN_P_LOG, tech_pvt->skype_call_id, id);
|
||||
|
@ -2956,9 +2956,9 @@ int skypopen_transfer(private_t *tech_pvt)
|
|||
}
|
||||
DEBUGA_SKYPE("NOT FOUND\n", SKYPOPEN_P_LOG);
|
||||
|
||||
if (!tech_pvt || !tech_pvt->skype_call_id || !strlen(tech_pvt->skype_call_id)) {
|
||||
if (!tech_pvt || !tech_pvt->skype_call_id[0]) {
|
||||
/* we are not inside an active call */
|
||||
DEBUGA_SKYPE("We're NO MORE in a call now %s\n", SKYPOPEN_P_LOG, (tech_pvt && tech_pvt->skype_call_id) ? tech_pvt->skype_call_id : "");
|
||||
DEBUGA_SKYPE("We're NO MORE in a call now %s\n", SKYPOPEN_P_LOG, tech_pvt ? tech_pvt->skype_call_id : "");
|
||||
switch_mutex_unlock(globals.mutex);
|
||||
|
||||
} else {
|
||||
|
|
|
@ -57,7 +57,7 @@ const char* _get_host_port(mongo_host_port* hp) {
|
|||
|
||||
MONGO_EXPORT const char* mongo_get_primary(mongo* conn) {
|
||||
mongo* conn_ = (mongo*)conn;
|
||||
if( !(conn_->connected) || (conn_->primary->host == '\0') )
|
||||
if( !(conn_->connected) || (*conn_->primary->host == '\0') )
|
||||
return NULL;
|
||||
return _get_host_port(conn_->primary);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue