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
|
@ -304,7 +304,7 @@ int SrsKafkaCache::flush(SrsKafkaPartition* partition, int key, SrsKafkaPartitio
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the messages from cache.
|
// remove the messages from cache.
|
||||||
if (pc->size() == nb_msgs) {
|
if ((int)pc->size() == nb_msgs) {
|
||||||
pc->clear();
|
pc->clear();
|
||||||
} else {
|
} else {
|
||||||
pc->erase(pc->begin(), pc->begin() + nb_msgs);
|
pc->erase(pc->begin(), pc->begin() + nb_msgs);
|
||||||
|
|
|
@ -723,7 +723,7 @@ int SrsServer::acquire_pid_file()
|
||||||
|
|
||||||
// write the pid
|
// write the pid
|
||||||
string pid = srs_int2str(getpid());
|
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;
|
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);
|
srs_error("write our pid error! pid=%s file=%s ret=%#x", pid.c_str(), pid_file.c_str(), ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue