Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
9155e6b2
提交
9155e6b2
authored
9月 24, 2013
作者:
Michael Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-5819: fix var type usage outside the range of the enum
上级
e6bfd005
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
+6
-6
switch_apr.c
src/switch_apr.c
+6
-6
没有找到文件。
src/switch_apr.c
浏览文件 @
9155e6b2
...
@@ -717,7 +717,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_connect(switch_socket_t *sock, swi
...
@@ -717,7 +717,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_connect(switch_socket_t *sock, swi
SWITCH_DECLARE
(
switch_status_t
)
switch_socket_send
(
switch_socket_t
*
sock
,
const
char
*
buf
,
switch_size_t
*
len
)
SWITCH_DECLARE
(
switch_status_t
)
switch_socket_send
(
switch_socket_t
*
sock
,
const
char
*
buf
,
switch_size_t
*
len
)
{
{
switch_status_
t
status
=
SWITCH_STATUS_SUCCESS
;
in
t
status
=
SWITCH_STATUS_SUCCESS
;
switch_size_t
req
=
*
len
,
wrote
=
0
,
need
=
*
len
;
switch_size_t
req
=
*
len
,
wrote
=
0
,
need
=
*
len
;
int
to_count
=
0
;
int
to_count
=
0
;
...
@@ -737,7 +737,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_send(switch_socket_t *sock, const
...
@@ -737,7 +737,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_send(switch_socket_t *sock, const
}
}
*
len
=
wrote
;
*
len
=
wrote
;
return
status
;
return
(
switch_status_t
)
status
;
}
}
SWITCH_DECLARE
(
switch_status_t
)
switch_socket_send_nonblock
(
switch_socket_t
*
sock
,
const
char
*
buf
,
switch_size_t
*
len
)
SWITCH_DECLARE
(
switch_status_t
)
switch_socket_send_nonblock
(
switch_socket_t
*
sock
,
const
char
*
buf
,
switch_size_t
*
len
)
...
@@ -760,7 +760,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_sendto(switch_socket_t *sock, swit
...
@@ -760,7 +760,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_sendto(switch_socket_t *sock, swit
SWITCH_DECLARE
(
switch_status_t
)
switch_socket_recv
(
switch_socket_t
*
sock
,
char
*
buf
,
switch_size_t
*
len
)
SWITCH_DECLARE
(
switch_status_t
)
switch_socket_recv
(
switch_socket_t
*
sock
,
char
*
buf
,
switch_size_t
*
len
)
{
{
switch_status_
t
r
;
in
t
r
;
r
=
apr_socket_recv
(
sock
,
buf
,
len
);
r
=
apr_socket_recv
(
sock
,
buf
,
len
);
...
@@ -768,7 +768,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_recv(switch_socket_t *sock, char *
...
@@ -768,7 +768,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_recv(switch_socket_t *sock, char *
r
=
SWITCH_STATUS_BREAK
;
r
=
SWITCH_STATUS_BREAK
;
}
}
return
r
;
return
(
switch_status_t
)
r
;
}
}
SWITCH_DECLARE
(
switch_status_t
)
switch_sockaddr_create
(
switch_sockaddr_t
**
sa
,
switch_memory_pool_t
*
pool
)
SWITCH_DECLARE
(
switch_status_t
)
switch_sockaddr_create
(
switch_sockaddr_t
**
sa
,
switch_memory_pool_t
*
pool
)
...
@@ -866,7 +866,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_atmark(switch_socket_t *sock, int
...
@@ -866,7 +866,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_atmark(switch_socket_t *sock, int
SWITCH_DECLARE
(
switch_status_t
)
switch_socket_recvfrom
(
switch_sockaddr_t
*
from
,
switch_socket_t
*
sock
,
int32_t
flags
,
char
*
buf
,
size_t
*
len
)
SWITCH_DECLARE
(
switch_status_t
)
switch_socket_recvfrom
(
switch_sockaddr_t
*
from
,
switch_socket_t
*
sock
,
int32_t
flags
,
char
*
buf
,
size_t
*
len
)
{
{
apr_status_
t
r
=
SWITCH_STATUS_GENERR
;
in
t
r
=
SWITCH_STATUS_GENERR
;
if
(
from
&&
sock
&&
(
r
=
apr_socket_recvfrom
(
from
,
sock
,
flags
,
buf
,
len
))
==
APR_SUCCESS
)
{
if
(
from
&&
sock
&&
(
r
=
apr_socket_recvfrom
(
from
,
sock
,
flags
,
buf
,
len
))
==
APR_SUCCESS
)
{
from
->
port
=
ntohs
(
from
->
sa
.
sin
.
sin_port
);
from
->
port
=
ntohs
(
from
->
sa
.
sin
.
sin_port
);
...
@@ -879,7 +879,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_recvfrom(switch_sockaddr_t *from,
...
@@ -879,7 +879,7 @@ SWITCH_DECLARE(switch_status_t) switch_socket_recvfrom(switch_sockaddr_t *from,
r
=
SWITCH_STATUS_BREAK
;
r
=
SWITCH_STATUS_BREAK
;
}
}
return
r
;
return
(
switch_status_t
)
r
;
}
}
/* poll stubs */
/* poll stubs */
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论