Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2015-10-28 11:58:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9ebb77d7118590509422bf4f09d3ffe229e489bf
9ebb77d7
1 parent
e9e202db
fix the warnings
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
trunk/src/app/srs_app_kafka.cpp
trunk/src/app/srs_app_server.cpp
trunk/src/app/srs_app_kafka.cpp
查看文件 @
9ebb77d
...
...
@@ -304,7 +304,7 @@ int SrsKafkaCache::flush(SrsKafkaPartition* partition, int key, SrsKafkaPartitio
}
// remove the messages from cache.
if
(
pc
->
size
()
==
nb_msgs
)
{
if
(
(
int
)
pc
->
size
()
==
nb_msgs
)
{
pc
->
clear
();
}
else
{
pc
->
erase
(
pc
->
begin
(),
pc
->
begin
()
+
nb_msgs
);
...
...
trunk/src/app/srs_app_server.cpp
查看文件 @
9ebb77d
...
...
@@ -723,7 +723,7 @@ int SrsServer::acquire_pid_file()
// write the pid
string
pid
=
srs_int2str
(
getpid
());
if
(
write
(
fd
,
pid
.
c_str
(),
pid
.
length
())
!=
pid
.
length
())
{
if
(
write
(
fd
,
pid
.
c_str
(),
pid
.
length
())
!=
(
int
)
pid
.
length
())
{
ret
=
ERROR_SYSTEM_PID_WRITE_FILE
;
srs_error
(
"write our pid error! pid=%s file=%s ret=%#x"
,
pid
.
c_str
(),
pid_file
.
c_str
(),
ret
);
return
ret
;
...
...
请
注册
或
登录
后发表评论