]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix warnings
authorJeff Lenk <jeff@jefflenk.com>
Fri, 16 Sep 2011 17:34:24 +0000 (12:34 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 16 Sep 2011 17:34:51 +0000 (12:34 -0500)
src/switch_channel.c
src/switch_ivr_async.c

index a8669f1602d8ae88647cbaae61bb3db3c4e14767..30a2e85da2b45b2a23b4f62eb812f2df1c5b6554 100644 (file)
@@ -446,7 +446,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf_string(switch_channel_
                dur = switch_core_default_dtmf_duration(0) / 8;
                if ((p = strchr(argv[i], '@'))) {
                        *p++ = '\0';
-                       if ((dur = atoi(p)) > switch_core_min_dtmf_duration(0) / 8) {
+                       if ((dur = atoi(p)) > (int)switch_core_min_dtmf_duration(0) / 8) {
                                dtmf.duration = dur * 8;
                        }
                }
index 99449082bb321ebc5556956b95884283f5a24461..c36d5e648c148db4a762b5d446a4898dd26c02aa 100644 (file)
@@ -2364,7 +2364,7 @@ static switch_bool_t inband_dtmf_generate_callback(switch_media_bug_t *bug, void
                                                int duration = dtmf->duration;
 
                                                buf[0] = dtmf->digit;
-                                               if (duration > switch_core_max_dtmf_duration(0)) {
+                                               if (duration > (int)switch_core_max_dtmf_duration(0)) {
                                                        duration = switch_core_default_dtmf_duration(0);
                                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(switch_core_media_bug_get_session(bug)),
                                                                                  SWITCH_LOG_WARNING, "%s Truncating DTMF duration %d ms to %d ms\n",