From 8f3a45f3ef4b809d67b428f25836316eb847614e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 24 Jan 2024 12:16:15 +0100 Subject: [PATCH] implemented why2_config_read in chat-misc --- src/chat/misc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index 448ee28..f4c36f1 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -30,7 +30,6 @@ along with this program. If not, see . #include #include -#include #include #include @@ -305,7 +304,7 @@ void *why2_communicate_thread(void *arg) //GET USERNAME char *string_buffer = why2_replace(WHY2_CHAT_CONFIG_DIR "/" WHY2_CHAT_CONFIG_SERVER, "{USER}", getenv("USER")); - char *config_username = why2_yml_read(string_buffer, "user_pick_username"); + char *config_username = why2_config_read(string_buffer, "user_pick_username"); if (config_username == NULL || strcmp(config_username, "true") == 0) { @@ -318,7 +317,7 @@ void *why2_communicate_thread(void *arg) } why2_deallocate(string_buffer); - why2_deallocate(config_username); + why2_config_read_free(config_username); void *buffer; char *received = NULL;