提交 9257b213 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Remove unused C includes

上级 644e2a44
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <absl/container/flat_hash_map.h> #include <absl/container/flat_hash_map.h>
#include <cerrno> #include <cerrno>
#include <csignal> // sigaction() #include <csignal> // sigaction()
#include <cstdlib> // std::_Exit(), std::genenv()
#include <iostream> // std::cerr, std::endl
#include <string> #include <string>
void IgnoreSignals(); void IgnoreSignals();
...@@ -225,7 +223,9 @@ void IgnoreSignals() ...@@ -225,7 +223,9 @@ void IgnoreSignals()
err = sigfillset(&act.sa_mask); err = sigfillset(&act.sa_mask);
if (err != 0) if (err != 0)
{
MS_THROW_ERROR("sigfillset() failed: %s", std::strerror(errno)); MS_THROW_ERROR("sigfillset() failed: %s", std::strerror(errno));
}
for (auto& kv : ignoredSignals) for (auto& kv : ignoredSignals)
{ {
...@@ -235,7 +235,9 @@ void IgnoreSignals() ...@@ -235,7 +235,9 @@ void IgnoreSignals()
err = sigaction(sigId, &act, nullptr); err = sigaction(sigId, &act, nullptr);
if (err != 0) if (err != 0)
{
MS_THROW_ERROR("sigaction() failed for signal %s: %s", sigName.c_str(), std::strerror(errno)); MS_THROW_ERROR("sigaction() failed for signal %s: %s", sigName.c_str(), std::strerror(errno));
}
} }
#endif #endif
} }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "MediaSoupErrors.hpp" #include "MediaSoupErrors.hpp"
#include "lib.hpp" #include "lib.hpp"
#include <cstdlib> // std::_Exit(), std::genenv() #include <cstdlib> // std::_Exit()
#include <string> #include <string>
static constexpr int ConsumerChannelFd{ 3 }; static constexpr int ConsumerChannelFd{ 3 };
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论