From 89e69df3cdadb1490739368ac41fd6290e1990a7 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 26 Aug 2023 18:15:53 +0200 Subject: [PATCH] renamed why2_chat_init_config to why2_chat_init_server_config --- include/chat/config.h | 2 +- src/chat/config.c | 2 +- src/chat/main/server.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/chat/config.h b/include/chat/config.h index 0e466a6..f0d17ce 100644 --- a/include/chat/config.h +++ b/include/chat/config.h @@ -22,6 +22,6 @@ along with this program. If not, see . //MACROS #define WHY2_CHAT_CODE_PICK_USERNAME "code_001" -void why2_chat_init_config(void); //CHECK IF CONFIG EXISTS, CREATE IT +void why2_chat_init_server_config(void); //CHECK IF SERVER CONFIG EXISTS, CREATE IT #endif \ No newline at end of file diff --git a/src/chat/config.c b/src/chat/config.c index 86abf5c..7db5c34 100644 --- a/src/chat/config.c +++ b/src/chat/config.c @@ -30,7 +30,7 @@ along with this program. If not, see . #include #include -void why2_chat_init_config(void) +void why2_chat_init_server_config(void) { char *path = why2_replace(WHY2_CHAT_CONFIG_DIR "/" WHY2_CHAT_CONFIG_SERVER, "{USER}", getenv("USER")); diff --git a/src/chat/main/server.c b/src/chat/main/server.c index 06c00b8..d4450ea 100644 --- a/src/chat/main/server.c +++ b/src/chat/main/server.c @@ -33,7 +33,7 @@ along with this program. If not, see . int main(void) { - why2_chat_init_config(); + why2_chat_init_server_config(); int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET pthread_t thread;