This commit is contained in:
ccppi_production 2024-09-16 10:39:50 +00:00
parent a723e0ba83
commit 72d3e85b3d
2 changed files with 7 additions and 1 deletions

3
config
View File

@ -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

View File

@ -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<size;i++)
{
printf("for loop:%d\n",i);
printf("str:%s\n",str_entry[i]);
if(fgets(temp_str,256,f_config)!=NULL)
{
temp_str[strcspn(temp_str,"\n")]=0;