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:
@@ -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
@@ -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;
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
#include "net/SocketError.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
FullyBufferedSocket::ssize_t
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "IdleMonitor.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
void
|
||||
IdleMonitor::Cancel() noexcept
|
||||
|
||||
+2
-3
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "PollGroupPoll.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
|
||||
PollGroupPoll::PollGroupPoll() noexcept = default;
|
||||
PollGroupPoll::~PollGroupPoll() noexcept = default;
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -20,10 +20,9 @@
|
||||
#include "SocketMonitor.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <utility>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
void
|
||||
SocketMonitor::Dispatch(unsigned flags) noexcept
|
||||
{
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
#include "PollGroup.hxx"
|
||||
#include "net/SocketDescriptor.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <type_traits>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
|
||||
class EventLoop;
|
||||
|
||||
Reference in New Issue
Block a user