1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:24:49 +02:00

Use C++11 header names instead of their deprecated equivalents.

This commit is contained in:
Sadie Powell
2022-01-04 12:36:35 +00:00
parent 106750db77
commit ec7dfb3675
9 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -55,7 +55,7 @@
* hadn't seen his code).
*/
#include <string.h>
#include <cstring>
#ifdef __i386__
#define BF_SCALE 1
+1 -1
View File
@@ -6,8 +6,8 @@
*/
#include "webcpanel.h"
#include <cerrno>
#include <fstream>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
+1 -1
View File
@@ -6,9 +6,9 @@
*/
#include "webcpanel.h"
#include <cerrno>
#include <fstream>
#include <stack>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
+3 -3
View File
@@ -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";
+1 -1
View File
@@ -17,7 +17,7 @@
#include "uplink.h"
#ifndef _WIN32
#include <limits.h>
#include <climits>
#else
#include <process.h>
#endif
+2 -2
View File
@@ -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>
+1 -1
View File
@@ -14,7 +14,7 @@
#include "logger.h"
#include "sockets.h"
#include <errno.h>
#include <cerrno>
void ConnectionSocket::Connect(const Anope::string &TargetHost, int Port)
{
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -16,7 +16,7 @@
#ifndef _WIN32
#include <arpa/inet.h>
#include <errno.h>
#include <cerrno>
#include <fcntl.h>
#endif