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

@@ -19,7 +19,8 @@
#include "Base.hxx"
#include <assert.h>
#include <cassert>
#include <string.h>
static char nfs_base_server[64];

View File

@@ -25,8 +25,7 @@
#include <boost/intrusive/list.hpp>
#include <algorithm>
#include <assert.h>
#include <cassert>
template<typename T>
class CancellablePointer

View File

@@ -37,7 +37,8 @@ extern "C" {
#include <nfsc/libnfs.h>
}
#include <assert.h>
#include <cassert>
#include <string.h>
static StringBuffer<256>

View File

@@ -24,10 +24,10 @@
#include "event/Call.hxx"
#include "util/ASCII.hxx"
#include <utility>
#include <cassert>
#include <stdexcept>
#include <utility>
#include <assert.h>
#include <string.h>
#include <fcntl.h>

View File

@@ -22,7 +22,7 @@
#include "event/Call.hxx"
#include "util/Manual.hxx"
#include <assert.h>
#include <cassert>
static Manual<NfsManager> nfs_glue;
static unsigned in_use;