replace assert.h with cassert

The former was deprecated with C++14.

According to the C++11 and C++17 standards, both files are identical.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-03-12 15:20:59 -07:00
parent a718086ffb
commit ab9f5d2067
246 changed files with 320 additions and 317 deletions
+1 -1
View File
@@ -23,9 +23,9 @@
#include "SocketMonitor.hxx"
#include "util/StaticFifoBuffer.hxx"
#include <cassert>
#include <exception>
#include <assert.h>
#include <stdint.h>
class EventLoop;
+1 -2
View File
@@ -23,10 +23,9 @@
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include <cassert>
#include <exception>
#include <assert.h>
class BlockingCallMonitor final
{
DeferEvent defer_event;
+2 -1
View File
@@ -21,7 +21,8 @@
#include "net/SocketError.hxx"
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
#include <string.h>
FullyBufferedSocket::ssize_t
+1 -1
View File
@@ -20,7 +20,7 @@
#include "IdleMonitor.hxx"
#include "Loop.hxx"
#include <assert.h>
#include <cassert>
void
IdleMonitor::Cancel() noexcept
+2 -3
View File
@@ -34,10 +34,9 @@
#include <boost/intrusive/set.hpp>
#include <boost/intrusive/list.hpp>
#include <chrono>
#include <atomic>
#include <assert.h>
#include <cassert>
#include <chrono>
/**
* An event loop that polls for events on file/socket descriptors.
+1 -2
View File
@@ -24,11 +24,10 @@
#include "TimerEvent.hxx"
#include "SocketMonitor.hxx"
#include <cassert>
#include <forward_list>
#include <iterator>
#include <assert.h>
#ifndef _WIN32
struct pollfd;
#endif
+1 -1
View File
@@ -23,7 +23,7 @@
#include "PollGroupPoll.hxx"
#include <assert.h>
#include <cassert>
PollGroupPoll::PollGroupPoll() noexcept = default;
PollGroupPoll::~PollGroupPoll() noexcept = default;
+3 -3
View File
@@ -22,11 +22,11 @@
#include "PollResultGeneric.hxx"
#include <assert.h>
#include <string.h>
#include <cassert>
#include <unordered_map>
#include <string.h>
#include <windows.h>
#include <winsock2.h>
+1 -2
View File
@@ -35,11 +35,10 @@
#include "util/Domain.hxx"
#include "Log.hxx"
#include <cassert>
#include <string>
#include <utility>
#include <assert.h>
#ifdef HAVE_UN
#include <sys/stat.h>
#endif
+1 -1
View File
@@ -37,12 +37,12 @@
#endif
#include <algorithm>
#include <cassert>
#ifdef USE_SIGNALFD
#include <pthread.h>
#endif
#include <assert.h>
#include <signal.h>
class SignalMonitor final : private SocketMonitor {
+1 -2
View File
@@ -20,10 +20,9 @@
#include "SocketMonitor.hxx"
#include "Loop.hxx"
#include <cassert>
#include <utility>
#include <assert.h>
void
SocketMonitor::Dispatch(unsigned flags) noexcept
{
+1 -1
View File
@@ -23,9 +23,9 @@
#include "PollGroup.hxx"
#include "net/SocketDescriptor.hxx"
#include <cassert>
#include <type_traits>
#include <assert.h>
#include <stddef.h>
class EventLoop;