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

View File

@@ -30,7 +30,7 @@
#include "AddressInfo.hxx"
#include "Features.hxx"
#include <assert.h>
#include <cassert>
static constexpr int address_family_ranking[] = {
#ifdef HAVE_UN

View File

@@ -29,7 +29,7 @@
#include "IPv4Address.hxx"
#include <assert.h>
#include <cassert>
static const struct sockaddr_in *
CastToIPv4(const struct sockaddr *p) noexcept

View File

@@ -30,7 +30,8 @@
#include "IPv6Address.hxx"
#include "IPv4Address.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
static const struct sockaddr_in6 *

View File

@@ -32,7 +32,8 @@
#include "IPv6Address.hxx"
#include "util/StringView.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
#ifdef HAVE_UN

View File

@@ -34,7 +34,7 @@
#include "Features.hxx"
#include "util/Compiler.h"
#include <assert.h>
#include <cassert>
/**
* An OO wrapper for struct sockaddr_storage.

View File

@@ -34,6 +34,7 @@
#include "IPv4Address.hxx"
#include <algorithm>
#include <cassert>
#ifdef _WIN32
#include <ws2tcpip.h>
@@ -48,7 +49,6 @@
#include <sys/un.h>
#endif
#include <assert.h>
#include <string.h>
#ifdef HAVE_UN