mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
- network-service: formatting code using astyle
Signed-off-by: Thilo Graf <dbt@novatux.de>
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