summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-12 15:20:59 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-12 15:25:38 -0700
commitab9f5d2067e1f8f22cb5009015ec059f4a1a7431 (patch)
tree29c6f69c06e70d4e9a26dd137d233ae776206d83 /src/system
parenta718086ffb989b7c56afc51eb3380f6568ef929e (diff)
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>
Diffstat (limited to 'src/system')
-rw-r--r--src/system/EventFD.cxx3
-rw-r--r--src/system/EventPipe.cxx3
-rw-r--r--src/system/FileDescriptor.cxx3
-rw-r--r--src/system/SignalFD.cxx3
-rw-r--r--src/system/UniqueFileDescriptor.hxx3
5 files changed, 9 insertions, 6 deletions
diff --git a/src/system/EventFD.cxx b/src/system/EventFD.cxx
index 82e6ed4e3..80c722953 100644
--- a/src/system/EventFD.cxx
+++ b/src/system/EventFD.cxx
@@ -31,7 +31,8 @@
#include "system/Error.hxx"
#include "util/Compiler.h"
-#include <assert.h>
+#include <cassert>
+
#include <sys/eventfd.h>
EventFD::EventFD()
diff --git a/src/system/EventPipe.cxx b/src/system/EventPipe.cxx
index 4ab31aba3..981832b8c 100644
--- a/src/system/EventPipe.cxx
+++ b/src/system/EventPipe.cxx
@@ -22,7 +22,8 @@
#include "system/Error.hxx"
#include "util/Compiler.h"
-#include <assert.h>
+#include <cassert>
+
#include <unistd.h>
#ifdef _WIN32
diff --git a/src/system/FileDescriptor.cxx b/src/system/FileDescriptor.cxx
index 8639d9dbf..cd13e0b91 100644
--- a/src/system/FileDescriptor.cxx
+++ b/src/system/FileDescriptor.cxx
@@ -30,7 +30,8 @@
#include "FileDescriptor.hxx"
#include "system/Error.hxx"
-#include <assert.h>
+#include <cassert>
+
#include <stdint.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/src/system/SignalFD.cxx b/src/system/SignalFD.cxx
index 7b0634b22..e00464466 100644
--- a/src/system/SignalFD.cxx
+++ b/src/system/SignalFD.cxx
@@ -30,7 +30,8 @@
#include "SignalFD.hxx"
#include "Error.hxx"
-#include <assert.h>
+#include <cassert>
+
#include <sys/signalfd.h>
void
diff --git a/src/system/UniqueFileDescriptor.hxx b/src/system/UniqueFileDescriptor.hxx
index ff1a72719..8e808b231 100644
--- a/src/system/UniqueFileDescriptor.hxx
+++ b/src/system/UniqueFileDescriptor.hxx
@@ -32,10 +32,9 @@
#include "FileDescriptor.hxx"
+#include <cassert>
#include <utility>
-#include <assert.h>
-
/**
* An OO wrapper for a UNIX file descriptor.
*/