Skip to content

Commit

Permalink
Remove unused C includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Jul 11, 2023
1 parent 644e2a4 commit 9257b21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions worker/src/lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include <absl/container/flat_hash_map.h>
#include <cerrno>
#include <csignal> // sigaction()
#include <cstdlib> // std::_Exit(), std::genenv()
#include <iostream> // std::cerr, std::endl
#include <string>

void IgnoreSignals();
Expand Down Expand Up @@ -225,7 +223,9 @@ void IgnoreSignals()
err = sigfillset(&act.sa_mask);

if (err != 0)
{
MS_THROW_ERROR("sigfillset() failed: %s", std::strerror(errno));
}

for (auto& kv : ignoredSignals)
{
Expand All @@ -235,7 +235,9 @@ void IgnoreSignals()
err = sigaction(sigId, &act, nullptr);

if (err != 0)
{
MS_THROW_ERROR("sigaction() failed for signal %s: %s", sigName.c_str(), std::strerror(errno));
}
}
#endif
}
2 changes: 1 addition & 1 deletion worker/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "MediaSoupErrors.hpp"
#include "lib.hpp"
#include <cstdlib> // std::_Exit(), std::genenv()
#include <cstdlib> // std::_Exit()
#include <string>

static constexpr int ConsumerChannelFd{ 3 };
Expand Down

0 comments on commit 9257b21

Please sign in to comment.