network-service: formatting code using astyle

Origin commit data
------------------
Commit: 4bc8eb2cbb
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-10-20 (Wed, 20 Oct 2021)

Origin message was:
------------------
- network-service: formatting code using astyle
This commit is contained in:
vanhofen
2021-10-20 20:24:59 +02:00
parent 6671d9d6eb
commit d307f59cc2
2 changed files with 30 additions and 26 deletions

View File

@@ -93,11 +93,14 @@ void CNetworkService::TouchFile()
{
std::string file = TOUCH_BASE + command;
printf("CNetworkService::TouchFile: %s %s\n", enabled ? "create" : "remove", file.c_str());
if(enabled) {
if (enabled)
{
FILE *fp = fopen(file.c_str(), "w");
if (fp)
fclose(fp);
} else {
}
else
{
unlink(file.c_str());
}
}
@@ -172,7 +175,8 @@ int CNetworkServiceSetup::showNetworkServiceSetup()
//set active when found
bool active;
for(unsigned i = 0; i < SERVICE_COUNT; i++) {
for (unsigned i = 0; i < SERVICE_COUNT; i++)
{
items[i] = new CNetworkService(services[i].cmd, services[i].options);
services[i].enabled = items[i]->Enabled();