]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6884 #comment these were mostly simple warnings
authorJeff Lenk <jeff@jefflenk.com>
Fri, 3 Oct 2014 00:20:09 +0000 (19:20 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 3 Oct 2014 00:20:35 +0000 (19:20 -0500)
src/mod/applications/mod_conference/mod_conference.c
src/mod/endpoints/mod_sofia/sofia.c

index c431f11286ca55b21346ff991fbf6d609811752b..a14956f12029e17481203f64cb69802248f33d9d 100644 (file)
@@ -413,7 +413,7 @@ typedef struct conference_obj {
        int comfort_noise_level;
        int auto_recording;
        int record_count;
-       int min_recording_participants;
+       uint32_t min_recording_participants;
        int video_running;
        int ivr_dtmf_timeout;
        int ivr_input_timeout;
@@ -4659,7 +4659,8 @@ static void member_add_file_data(conference_member_t *member, int16_t *data, swi
                        if (file_sample_len <= 0) {
                                member->fnode->done++;
                        } else {                        /* there is file node data to mix into the frame */
-                               int32_t i, sample;
+                               uint32_t i;
+                               int32_t sample;
 
                                /* Check for output volume adjustments */
                                if (member->volume_out_level) {
@@ -5518,7 +5519,7 @@ static switch_status_t conference_play_file(conference_obj_t *conference, char *
                                switch_core_file_close(&fnode->fh);
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Position Data.\n");
                                fnode->al = NULL;
-                               channels = conference->channels;
+                               channels = (uint8_t)conference->channels;
                                bad_params = 1;
                                goto retry;
                        }
index 6d83a8191d2468c5e04ed48658c2e2b9eda4abcf..ea3e567b1fe6a3eab144261326513893465b9c40 100644 (file)
@@ -5178,13 +5178,13 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
                                        } else if (!strcasecmp(var, "tls-ciphers") && !zstr(val)) {
                                                profile->tls_ciphers = switch_core_strdup(profile->pool, val);
                                        } else if (!strcasecmp(var, "tls-version") && !zstr(val)) {
-                                               char *ps = val, *pe;
+                                               char *ps = val, *pe = val;
                                                profile->tls_version = 0;
-                                               while (1) {
+                                               while (ps && *pe) {
                                                        int n;
                                                        pe = strchr(ps,',');
                                                        if (!pe && !(pe = memchr(ps,0,1024))) break;
-                                                       n = pe-ps;
+                                                       n = (int)(pe-ps);
                                                        if (n==5 && !strncasecmp(ps, "sslv2", n))
                                                                profile->tls_version |= SOFIA_TLS_VERSION_SSLv2;
                                                        if (n==5 && !strncasecmp(ps, "sslv3", n))
@@ -5198,7 +5198,6 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
                                                        if (n==7 && !strncasecmp(ps, "tlsv1.2", n))
                                                                profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_2;
                                                        ps=pe+1;
-                                                       if (!*pe) break;
                                                }
                                        } else if (!strcasecmp(var, "tls-timeout")) {
                                                int v = atoi(val);