mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the warnings
This commit is contained in:
parent
e9e202dbf1
commit
9ebb77d711
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue