Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
184f3955
提交
184f3955
authored
9月 20, 2010
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix several code analysis problems and mask several that are required
上级
07487114
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
29 行增加
和
5 行删除
+29
-5
esl.c
libs/esl/src/esl.c
+3
-0
esl_config.c
libs/esl/src/esl_config.c
+1
-1
esl_event.c
libs/esl/src/esl_event.c
+3
-0
libteletone_generate.c
libs/libteletone/src/libteletone_generate.c
+3
-0
switch.h
src/include/switch.h
+3
-0
switch_utils.h
src/include/switch_utils.h
+12
-0
mod_spandsp_dsp.c
src/mod/applications/mod_spandsp/mod_spandsp_dsp.c
+2
-2
mod_unimrcp.c
src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c
+1
-1
switch_console.c
src/switch_console.c
+1
-1
没有找到文件。
libs/esl/src/esl.c
浏览文件 @
184f3955
...
@@ -36,7 +36,10 @@
...
@@ -36,7 +36,10 @@
#define closesocket(x) close(x)
#define closesocket(x) close(x)
#include <fcntl.h>
#include <fcntl.h>
#else
#else
#pragma warning (disable:6386)
/* These warnings need to be ignored warning in sdk header */
#include <Ws2tcpip.h>
#include <Ws2tcpip.h>
#pragma warning (default:6386)
#endif
#endif
...
...
libs/esl/src/esl_config.c
浏览文件 @
184f3955
...
@@ -110,7 +110,7 @@ ESL_DECLARE(int) esl_config_next_pair(esl_config_t *cfg, char **var, char **val)
...
@@ -110,7 +110,7 @@ ESL_DECLARE(int) esl_config_next_pair(esl_config_t *cfg, char **var, char **val)
*
var
=
*
val
=
NULL
;
*
var
=
*
val
=
NULL
;
if
(
!
cfg
->
path
)
{
if
(
!
cfg
||
!
cfg
->
file
)
{
return
0
;
return
0
;
}
}
...
...
libs/esl/src/esl_event.c
浏览文件 @
184f3955
...
@@ -513,6 +513,9 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
...
@@ -513,6 +513,9 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
char
*
encode_buf
=
NULL
;
/* used for url encoding of variables to make sure unsafe things stay out of the serialized copy */
char
*
encode_buf
=
NULL
;
/* used for url encoding of variables to make sure unsafe things stay out of the serialized copy */
int
clen
=
0
;
int
clen
=
0
;
if
(
!
event
||
!
event
->
headers
)
return
ESL_FAIL
;
*
str
=
NULL
;
*
str
=
NULL
;
dlen
=
blocksize
*
2
;
dlen
=
blocksize
*
2
;
...
...
libs/libteletone/src/libteletone_generate.c
浏览文件 @
184f3955
...
@@ -413,6 +413,9 @@ TELETONE_API(int) teletone_run(teletone_generation_session_t *ts, const char *cm
...
@@ -413,6 +413,9 @@ TELETONE_API(int) teletone_run(teletone_generation_session_t *ts, const char *cm
*
e
++
=
'\0'
;
*
e
++
=
'\0'
;
}
}
do
{
do
{
if
(
!
p
)
{
break
;
}
if
((
next
=
strchr
(
p
,
','
))
!=
0
)
{
if
((
next
=
strchr
(
p
,
','
))
!=
0
)
{
*
next
++
=
'\0'
;
*
next
++
=
'\0'
;
}
}
...
...
src/include/switch.h
浏览文件 @
184f3955
...
@@ -91,7 +91,10 @@
...
@@ -91,7 +91,10 @@
#include <Ws2tcpip.h>
#include <Ws2tcpip.h>
#pragma warning(pop)
#pragma warning(pop)
#else
#else
/* work around for warnings in vs 2010 */
#pragma warning (disable:6386)
#include <Ws2tcpip.h>
#include <Ws2tcpip.h>
#pragma warning (default:6386)
#endif
#endif
#else
#else
#include <strings.h>
#include <strings.h>
...
...
src/include/switch_utils.h
浏览文件 @
184f3955
...
@@ -139,6 +139,9 @@ static inline char *switch_strchr_strict(const char *in, char find, const char *
...
@@ -139,6 +139,9 @@ static inline char *switch_strchr_strict(const char *in, char find, const char *
#define switch_is_valid_rate(_tmp) (_tmp == 8000 || _tmp == 12000 || _tmp == 16000 || _tmp == 24000 || _tmp == 32000 || _tmp == 11025 || _tmp == 22050 || _tmp == 44100 || _tmp == 48000)
#define switch_is_valid_rate(_tmp) (_tmp == 8000 || _tmp == 12000 || _tmp == 16000 || _tmp == 24000 || _tmp == 32000 || _tmp == 11025 || _tmp == 22050 || _tmp == 44100 || _tmp == 48000)
#ifdef _MSC_VER
#pragma warning(disable:6011)
#endif
static
inline
int
switch_string_has_escaped_data
(
const
char
*
in
)
static
inline
int
switch_string_has_escaped_data
(
const
char
*
in
)
{
{
const
char
*
i
=
strchr
(
in
,
'\\'
);
const
char
*
i
=
strchr
(
in
,
'\\'
);
...
@@ -153,6 +156,9 @@ static inline int switch_string_has_escaped_data(const char *in)
...
@@ -153,6 +156,9 @@ static inline int switch_string_has_escaped_data(const char *in)
return
0
;
return
0
;
}
}
#ifdef _MSC_VER
#pragma warning(default:6011)
#endif
SWITCH_DECLARE
(
switch_status_t
)
switch_b64_encode
(
unsigned
char
*
in
,
switch_size_t
ilen
,
unsigned
char
*
out
,
switch_size_t
olen
);
SWITCH_DECLARE
(
switch_status_t
)
switch_b64_encode
(
unsigned
char
*
in
,
switch_size_t
ilen
,
unsigned
char
*
out
,
switch_size_t
olen
);
SWITCH_DECLARE
(
switch_size_t
)
switch_b64_decode
(
char
*
in
,
char
*
out
,
switch_size_t
olen
);
SWITCH_DECLARE
(
switch_size_t
)
switch_b64_decode
(
char
*
in
,
char
*
out
,
switch_size_t
olen
);
...
@@ -455,6 +461,9 @@ static inline char *switch_safe_strdup(const char *it)
...
@@ -455,6 +461,9 @@ static inline char *switch_safe_strdup(const char *it)
}
}
#ifdef _MSC_VER
#pragma warning(disable:6011)
#endif
static
inline
char
*
switch_lc_strdup
(
const
char
*
it
)
static
inline
char
*
switch_lc_strdup
(
const
char
*
it
)
{
{
char
*
dup
;
char
*
dup
;
...
@@ -487,6 +496,9 @@ static inline char *switch_uc_strdup(const char *it)
...
@@ -487,6 +496,9 @@ static inline char *switch_uc_strdup(const char *it)
return
NULL
;
return
NULL
;
}
}
#ifdef _MSC_VER
#pragma warning(default:6011)
#endif
/*!
/*!
...
...
src/mod/applications/mod_spandsp/mod_spandsp_dsp.c
浏览文件 @
184f3955
...
@@ -549,8 +549,8 @@ static switch_status_t do_config(void)
...
@@ -549,8 +549,8 @@ static switch_status_t do_config(void)
if
(
id
==
-
1
)
{
if
(
id
==
-
1
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Unable to add tone_descriptor: %s, tone: %s. (too many tones)
\n
"
,
name
,
tone_name
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Unable to add tone_descriptor: %s, tone: %s. (too many tones)
\n
"
,
name
,
tone_name
);
return
SWITCH_STATUS_FALSE
;
return
SWITCH_STATUS_FALSE
;
}
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Adding tone_descriptor: %s, tone: %s(%d)
\n
"
,
name
,
tone_name
,
id
);
}
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Adding tone_descriptor: %s, tone: %s(%d)
\n
"
,
name
,
tone_name
,
id
);
/* add elements to tone */
/* add elements to tone */
for
(
element
=
switch_xml_child
(
tone
,
"element"
);
element
;
element
=
switch_xml_next
(
element
))
{
for
(
element
=
switch_xml_child
(
tone
,
"element"
);
element
;
element
=
switch_xml_next
(
element
))
{
const
char
*
freq1_attr
=
switch_xml_attr
(
element
,
"freq1"
);
const
char
*
freq1_attr
=
switch_xml_attr
(
element
,
"freq1"
);
...
...
src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c
浏览文件 @
184f3955
...
@@ -2724,7 +2724,7 @@ static switch_status_t recog_asr_open(switch_asr_handle_t *ah, const char *codec
...
@@ -2724,7 +2724,7 @@ static switch_status_t recog_asr_open(switch_asr_handle_t *ah, const char *codec
name
++
;
name
++
;
name
=
switch_core_sprintf
(
ah
->
memory_pool
,
"%s ASR-%d"
,
name
,
speech_channel_number
);
name
=
switch_core_sprintf
(
ah
->
memory_pool
,
"%s ASR-%d"
,
name
,
speech_channel_number
);
}
else
{
}
else
{
name
=
switch_core_sprintf
(
ah
->
memory_pool
,
"ASR-%d"
,
name
,
speech_channel_number
);
name
=
switch_core_sprintf
(
ah
->
memory_pool
,
"ASR-%d"
,
speech_channel_number
);
}
}
/* Allocate the channel */
/* Allocate the channel */
...
...
src/switch_console.c
浏览文件 @
184f3955
...
@@ -493,7 +493,7 @@ static int comp_callback(void *pArg, int argc, char **argv, char **columnNames)
...
@@ -493,7 +493,7 @@ static int comp_callback(void *pArg, int argc, char **argv, char **columnNames)
argc
=
switch_separate_string
(
list
,
':'
,
argv
,
(
sizeof
(
argv
)
/
sizeof
(
argv
[
0
])));
argc
=
switch_separate_string
(
list
,
':'
,
argv
,
(
sizeof
(
argv
)
/
sizeof
(
argv
[
0
])));
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
for
(
i
=
0
;
(
int
)
i
<
argc
;
i
++
)
{
if
(
!
cur
||
!
strncmp
(
argv
[
i
],
cur
,
strlen
(
cur
)))
{
if
(
!
cur
||
!
strncmp
(
argv
[
i
],
cur
,
strlen
(
cur
)))
{
r_argv
[
0
]
=
argv
[
i
];
r_argv
[
0
]
=
argv
[
i
];
comp_callback
(
h
,
1
,
r_argv
,
r_cols
);
comp_callback
(
h
,
1
,
r_argv
,
r_cols
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论