renamed why2_chat_init_config to why2_chat_init_server_config

This commit is contained in:
Václav Šmejkal 2023-08-26 18:15:53 +02:00
parent 9e95b283a4
commit 89e69df3cd
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
3 changed files with 3 additions and 3 deletions

View File

@ -22,6 +22,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
//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

View File

@ -30,7 +30,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <why2/memory.h>
#include <why2/misc.h>
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"));

View File

@ -33,7 +33,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
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;