From 77c01bc4b7e8b455cc4c73ec6263b395a1823cbb Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Fri, 16 Sep 2011 12:34:24 -0500 Subject: [PATCH] fix warnings --- src/switch_channel.c | 2 +- src/switch_ivr_async.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index a8669f1602..30a2e85da2 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -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; } } diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 99449082bb..c36d5e648c 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -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",