warnings cleanup.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5085 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-05-04 02:09:24 +00:00
parent dd45f3d599
commit bf6a88e818
5 changed files with 4 additions and 7 deletions

View File

@ -713,7 +713,7 @@ static switch_status_t originate_function(char *cmd, switch_core_session_t *ises
switch_core_session_rwunlock(caller_session);
}
return SWITCH_STATUS_SUCCESS;;
return SWITCH_STATUS_SUCCESS;
}
static void sch_api_callback(switch_scheduler_task_t *task)

View File

@ -399,7 +399,7 @@ static void log_function(switch_core_session_t *session, char *data)
assert(channel != NULL);
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, ' '))) {
*log_str++ = '\0';

View File

@ -384,7 +384,8 @@ static void dnscb(struct dns_ctx *ctx, void *result, void *data)
cur = dns_payload(pkt);
dns_getdn(pkt, &cur, end, dn, sizeof(dn));
dns_initparse(&p, NULL, pkt, cur, end);
p.dnsp_qcls = p.dnsp_qtyp = 0;
p.dnsp_qcls = 0;
p.dnsp_qtyp = 0;
qdn = dn;
nrr = 0;
while ((r = dns_nextrr(&p, &rr)) > 0) {

View File

@ -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_set_flag(dtb, SFLAG_INFO);
return SWITCH_STATUS_BREAK;
break;
case '9':
switch_core_speech_text_param_tts(dtb->sh, "voice", dtb->voice);
switch_set_flag(dtb, SFLAG_INFO);
return SWITCH_STATUS_BREAK;
break;
case '2':
if (dtb->speed < 260) {
dtb->speed += 30;
@ -490,7 +488,6 @@ static void rss_function(switch_core_session_t *session, char *data)
break;
case '#':
goto main_menu;
break;
}
}
}

View File

@ -89,7 +89,6 @@ static switch_status_t switch_g726_init(switch_codec_t *codec, switch_codec_flag
default:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid Encoding Size %d!\n", codec->implementation->encoded_bytes_per_frame);
return SWITCH_STATUS_FALSE;
break;
}
g726_init_state(&handle->context);