diff options
author | Sadie Powell <sadie@witchery.services> | 2022-01-04 12:36:35 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-01-04 12:36:35 +0000 |
commit | ec7dfb3675973e0e0ec6df69c871797bc94e8413 (patch) | |
tree | ddecd3f49a62c064bdcecc6fe7d4f95996b5dfb0 | |
parent | 106750db77be01c7b2d277a12d9b80de15cb8fbb (diff) |
Use C++11 header names instead of their deprecated equivalents.
-rw-r--r-- | modules/encryption/enc_bcrypt.cpp | 2 | ||||
-rw-r--r-- | modules/webcpanel/static_fileserver.cpp | 2 | ||||
-rw-r--r-- | modules/webcpanel/template_fileserver.cpp | 2 | ||||
-rw-r--r-- | src/init.cpp | 6 | ||||
-rw-r--r-- | src/main.cpp | 2 | ||||
-rw-r--r-- | src/misc.cpp | 4 | ||||
-rw-r--r-- | src/socket_clients.cpp | 2 | ||||
-rw-r--r-- | src/socketengines/socketengine_epoll.cpp | 2 | ||||
-rw-r--r-- | src/sockets.cpp | 2 |
9 files changed, 12 insertions, 12 deletions
diff --git a/modules/encryption/enc_bcrypt.cpp b/modules/encryption/enc_bcrypt.cpp index b5e65648e..6301579f2 100644 --- a/modules/encryption/enc_bcrypt.cpp +++ b/modules/encryption/enc_bcrypt.cpp @@ -55,7 +55,7 @@ * hadn't seen his code). */ -#include <string.h> +#include <cstring> #ifdef __i386__ #define BF_SCALE 1 diff --git a/modules/webcpanel/static_fileserver.cpp b/modules/webcpanel/static_fileserver.cpp index 2bfe48bee..1c706a886 100644 --- a/modules/webcpanel/static_fileserver.cpp +++ b/modules/webcpanel/static_fileserver.cpp @@ -6,8 +6,8 @@ */ #include "webcpanel.h" +#include <cerrno> #include <fstream> -#include <errno.h> #include <sys/types.h> #include <sys/stat.h> diff --git a/modules/webcpanel/template_fileserver.cpp b/modules/webcpanel/template_fileserver.cpp index 1f61b0bda..beee5a390 100644 --- a/modules/webcpanel/template_fileserver.cpp +++ b/modules/webcpanel/template_fileserver.cpp @@ -6,9 +6,9 @@ */ #include "webcpanel.h" +#include <cerrno> #include <fstream> #include <stack> -#include <errno.h> #include <sys/types.h> #include <sys/stat.h> diff --git a/src/init.cpp b/src/init.cpp index 48e3ebbfc..0620ca253 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -23,10 +23,10 @@ #include <sys/wait.h> #include <sys/stat.h> -#include <errno.h> -#include <sys/types.h> -#include <pwd.h> +#include <cerrno> #include <grp.h> +#include <pwd.h> +#include <sys/types.h> #endif Anope::string Anope::ConfigDir = "conf", Anope::DataDir = "data", Anope::ModuleDir = "lib", Anope::LocaleDir = "locale", Anope::LogDir = "logs"; diff --git a/src/main.cpp b/src/main.cpp index f4db34054..09bcea007 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,7 +17,7 @@ #include "uplink.h" #ifndef _WIN32 -#include <limits.h> +#include <climits> #else #include <process.h> #endif diff --git a/src/misc.cpp b/src/misc.cpp index 11f038710..a94ea21db 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -19,9 +19,9 @@ #include "regexpr.h" #include "sockets.h" -#include <errno.h> -#include <sys/types.h> +#include <cerrno> #include <sys/stat.h> +#include <sys/types.h> #ifndef _WIN32 #include <sys/socket.h> #include <netdb.h> diff --git a/src/socket_clients.cpp b/src/socket_clients.cpp index 1b559eb25..3f257734d 100644 --- a/src/socket_clients.cpp +++ b/src/socket_clients.cpp @@ -14,7 +14,7 @@ #include "logger.h" #include "sockets.h" -#include <errno.h> +#include <cerrno> void ConnectionSocket::Connect(const Anope::string &TargetHost, int Port) { diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 851fea4e4..b8de4bb79 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -15,9 +15,9 @@ #include "socketengine.h" #include "config.h" +#include <cerrno> #include <sys/epoll.h> #include <ulimit.h> -#include <errno.h> static int EngineHandle; static std::vector<epoll_event> events; diff --git a/src/sockets.cpp b/src/sockets.cpp index b05927691..84fb85098 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -16,7 +16,7 @@ #ifndef _WIN32 #include <arpa/inet.h> -#include <errno.h> +#include <cerrno> #include <fcntl.h> #endif |