]> PatchyGit - patchyircd.git/commitdiff
more header reorg
authorEgor <egor@patchysicp.xyz>
Fri, 13 Jun 2025 04:27:23 +0000 (07:27 +0300)
committerEgor <egor@patchysicp.xyz>
Fri, 13 Jun 2025 04:27:23 +0000 (07:27 +0300)
src/common.h
src/irc.cpp
src/main.cpp
src/net.cpp

index ea3e3fa..7577bae 100644 (file)
@@ -39,7 +39,6 @@ struct tls;
 #endif
 #include <uv.h>
 
-#include "netpoll.h"
 #include "map.h"
 
 #define MAX_NICKLEN 32
@@ -146,6 +145,4 @@ extern channelmap channel_map;
 extern stringset autojoin;
 extern struct client_data  *clients;
 extern struct client_data  *dyingclients;
-
-#include "admin.h"
 #endif
index 900ebbc..685bd60 100644 (file)
@@ -6,6 +6,7 @@
 #include "ircfmt.h"
 #include "passwd.h"
 #include "job.h"
+#include "admin.h"
 std::vector<char> databuf;
 clientmap client_map = {};
 channelmap channel_map = {};
index b5be910..114c001 100644 (file)
@@ -3,8 +3,10 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 #include "common.h"
 #include "net.h"
+#include "netpoll.h"
 #include "irc.h"
 #include "job.h"
+#include "admin.h"
 
 static int is_running = 1;
 
index cf0b731..047a381 100644 (file)
@@ -3,9 +3,11 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 #include "common.h"
 #include "net.h"
+#include "netpoll.h"
 #include "irc.h"
 #include "ircfmt.h"
 #include "job.h"
+#include "admin.h"
 void update_poll_reg(struct client_data *cl)
 {
        if (cl->fd == -1)