change errno.h to cerrno
The former is deprecated by C++14. It's also functionally the same. From the standard: 19.4 The header<cerrno>is described in Table 43. Its contents are the same as the POSIX header<errno.h>,except that errno shall be defined as a macro. [Note: The intent is to remain in close alignment with the POSIX standard.] A separate errno value shall be provided for each thread. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -49,10 +49,9 @@
|
||||
#include "fs/io/GzipOutputStream.hxx"
|
||||
#endif
|
||||
|
||||
#include <cerrno>
|
||||
#include <memory>
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
static constexpr Domain simple_db_domain("simple_db");
|
||||
|
||||
inline SimpleDatabase::SimpleDatabase(const ConfigBlock &block)
|
||||
|
||||
@@ -24,8 +24,9 @@
|
||||
#include "system/Error.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <cerrno>
|
||||
|
||||
#include <sys/inotify.h>
|
||||
#include <errno.h>
|
||||
#include <stdint.h>
|
||||
#include <limits.h>
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <errno.h>
|
||||
#include <cerrno>
|
||||
|
||||
bool
|
||||
GetInfo(Storage &storage, const char *uri_utf8, StorageFileInfo &info) noexcept
|
||||
|
||||
@@ -39,12 +39,12 @@
|
||||
#include "Log.hxx"
|
||||
|
||||
#include <cassert>
|
||||
#include <cerrno>
|
||||
#include <exception>
|
||||
#include <memory>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
UpdateWalk::UpdateWalk(const UpdateConfig &_config,
|
||||
EventLoop &_loop, DatabaseListener &_listener,
|
||||
|
||||
Reference in New Issue
Block a user