提交 bf6a88e8 authored 作者: Michael Jerris's avatar Michael Jerris

warnings cleanup.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5085 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 dd45f3d5
...@@ -713,7 +713,7 @@ static switch_status_t originate_function(char *cmd, switch_core_session_t *ises ...@@ -713,7 +713,7 @@ static switch_status_t originate_function(char *cmd, switch_core_session_t *ises
switch_core_session_rwunlock(caller_session); switch_core_session_rwunlock(caller_session);
} }
return SWITCH_STATUS_SUCCESS;; return SWITCH_STATUS_SUCCESS;
} }
static void sch_api_callback(switch_scheduler_task_t *task) static void sch_api_callback(switch_scheduler_task_t *task)
......
...@@ -399,7 +399,7 @@ static void log_function(switch_core_session_t *session, char *data) ...@@ -399,7 +399,7 @@ static void log_function(switch_core_session_t *session, char *data)
assert(channel != NULL); assert(channel != NULL);
if (data && (level = strdup(data))) { if (data && (level = strdup(data))) {
switch_event_types_t etype = SWITCH_LOG_DEBUG; switch_log_level_t etype = SWITCH_LOG_DEBUG;
if ((log_str = strchr(level, ' '))) { if ((log_str = strchr(level, ' '))) {
*log_str++ = '\0'; *log_str++ = '\0';
......
...@@ -384,7 +384,8 @@ static void dnscb(struct dns_ctx *ctx, void *result, void *data) ...@@ -384,7 +384,8 @@ static void dnscb(struct dns_ctx *ctx, void *result, void *data)
cur = dns_payload(pkt); cur = dns_payload(pkt);
dns_getdn(pkt, &cur, end, dn, sizeof(dn)); dns_getdn(pkt, &cur, end, dn, sizeof(dn));
dns_initparse(&p, NULL, pkt, cur, end); dns_initparse(&p, NULL, pkt, cur, end);
p.dnsp_qcls = p.dnsp_qtyp = 0; p.dnsp_qcls = 0;
p.dnsp_qtyp = 0;
qdn = dn; qdn = dn;
nrr = 0; nrr = 0;
while ((r = dns_nextrr(&p, &rr)) > 0) { while ((r = dns_nextrr(&p, &rr)) > 0) {
......
...@@ -114,12 +114,10 @@ static switch_status_t on_dtmf(switch_core_session_t *session, void *input, swit ...@@ -114,12 +114,10 @@ static switch_status_t on_dtmf(switch_core_session_t *session, void *input, swit
switch_core_speech_text_param_tts(dtb->sh, "voice", "next"); switch_core_speech_text_param_tts(dtb->sh, "voice", "next");
switch_set_flag(dtb, SFLAG_INFO); switch_set_flag(dtb, SFLAG_INFO);
return SWITCH_STATUS_BREAK; return SWITCH_STATUS_BREAK;
break;
case '9': case '9':
switch_core_speech_text_param_tts(dtb->sh, "voice", dtb->voice); switch_core_speech_text_param_tts(dtb->sh, "voice", dtb->voice);
switch_set_flag(dtb, SFLAG_INFO); switch_set_flag(dtb, SFLAG_INFO);
return SWITCH_STATUS_BREAK; return SWITCH_STATUS_BREAK;
break;
case '2': case '2':
if (dtb->speed < 260) { if (dtb->speed < 260) {
dtb->speed += 30; dtb->speed += 30;
...@@ -490,7 +488,6 @@ static void rss_function(switch_core_session_t *session, char *data) ...@@ -490,7 +488,6 @@ static void rss_function(switch_core_session_t *session, char *data)
break; break;
case '#': case '#':
goto main_menu; goto main_menu;
break;
} }
} }
} }
......
...@@ -89,7 +89,6 @@ static switch_status_t switch_g726_init(switch_codec_t *codec, switch_codec_flag ...@@ -89,7 +89,6 @@ static switch_status_t switch_g726_init(switch_codec_t *codec, switch_codec_flag
default: default:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid Encoding Size %d!\n", codec->implementation->encoded_bytes_per_frame); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid Encoding Size %d!\n", codec->implementation->encoded_bytes_per_frame);
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
break;
} }
g726_init_state(&handle->context); g726_init_state(&handle->context);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论