From 72d3e85b3dd6e738005c89604ebf25526f16c8d1 Mon Sep 17 00:00:00 2001 From: ccppi_production Date: Mon, 16 Sep 2024 10:39:50 +0000 Subject: [PATCH] asdf --- config | 3 +++ config.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config b/config index f10dfb2..99991a9 100644 --- a/config +++ b/config @@ -1,3 +1,6 @@ +[Host] +Hostname = https://5ccppi.org:4433 +[Services] /org/freedesktop/systemd1/unit/NetworkManager_2dwait_2donline_2eservice /org/freedesktop/systemd1/unit/NetworkManager_2eservice /org/freedesktop/systemd1/unit/httpd_2eservice diff --git a/config.c b/config.c index 7b83aae..9734649 100644 --- a/config.c +++ b/config.c @@ -13,10 +13,13 @@ int loadConfig(char *str_file, char **str_entry,int size) f_config = fopen(str_file,"r"); if(f_config != NULL) { + if(fgets(temp_str,256,f_config)!=NULL) + { + if + for(i=0;i