From edbe07615cd439f8c20b040aed2bb518d6c6c27f Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 12 Mar 2023 14:59:07 +0100 Subject: [PATCH] removed includes from common.h --- include/chat/common.h | 14 -------------- src/chat/main/client.c | 11 ++++++++++- src/chat/main/server.c | 12 ++++++++++-- src/chat/misc.c | 8 +++++++- 4 files changed, 27 insertions(+), 18 deletions(-) diff --git a/include/chat/common.h b/include/chat/common.h index f9c0c69..5529db4 100644 --- a/include/chat/common.h +++ b/include/chat/common.h @@ -16,23 +16,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -/* - DO NOT USE THIS FILE IN YOUR PROJECT! -*/ - #ifndef WHY2_CHAT_COMMON_H #define WHY2_CHAT_COMMON_H -//INCLUDES -#include -#include -#include -#include -#include //TODO: Remove not 100% common includes -#include -#include -#include - //DEFINES #define SA struct sockaddr #define SERVER_PORT 1204 diff --git a/src/chat/main/client.c b/src/chat/main/client.c index 6907e46..7496c81 100644 --- a/src/chat/main/client.c +++ b/src/chat/main/client.c @@ -16,11 +16,20 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include +#include +#include +#include +#include +#include #include +#include + +#include #include +#include + int main(void) { int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET diff --git a/src/chat/main/server.c b/src/chat/main/server.c index 54e4f7a..e2ba377 100644 --- a/src/chat/main/server.c +++ b/src/chat/main/server.c @@ -16,12 +16,20 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include - +#include +#include +#include +#include +#include #include +#include + +#include #include +#include + int main(void) { int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET diff --git a/src/chat/misc.c b/src/chat/misc.c index 9d6e24b..66ce7ab 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -18,10 +18,16 @@ along with this program. If not, see . #include +#include +#include +#include +#include +#include #include -#include +#include +#include #include //LINKED LIST STUFF (BIT CHANGED memory.c'S VERSION)