mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user