]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix clang build
authorMichael Jerris <mike@jerris.com>
Thu, 23 Apr 2015 20:00:27 +0000 (15:00 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:25 +0000 (12:47 -0500)
libs/libdingaling/src/libdingaling.c
src/mod/endpoints/mod_skypopen/mod_skypopen.c
src/mod/event_handlers/mod_cdr_mongodb/driver/src/mongo.c

index 0b7c037866ba1f3cabd3f937fdc0b1eef7cfb188..8efe5c4af5389c139383fcefb24e01cb4d0c2f7d 100644 (file)
@@ -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;
index d50f3727761cd747466737b9d7db934373dc35be..bb5343aa2827c2b3c36af3853b156a3536c06a2d 100644 (file)
@@ -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 {
index daf92b4c7be2a8d66adbbd8ee67788db2bad4085..618ffbdfdfec09f231a57e81406f0a2fa6ab828d 100644 (file)
@@ -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);
 }