@@ -454,10 +454,10 @@ bool PosixConfig::ConfigValueExists(Key key)
454
454
return storage->HasValue (key.Name );
455
455
}
456
456
457
- std::string PosixConfig::GetFilePath (const std::string &defaultFileName)
457
+ std::string PosixConfig::GetFilePath (const std::string & defaultFileName)
458
458
{
459
459
// Match what GetFilename in ExamplePersistentStorage.cpp does.
460
- const char *dir = std::getenv (" TMPDIR" );
460
+ const char * dir = std::getenv (" TMPDIR" );
461
461
if (dir == nullptr )
462
462
{
463
463
dir = " /tmp" ;
@@ -474,21 +474,21 @@ CHIP_ERROR PosixConfig::EnsureNamespace(const char * ns)
474
474
475
475
if (strcmp (ns, kConfigNamespace_ChipFactory ) == 0 )
476
476
{
477
- storage = &gChipLinuxFactoryStorage ;
477
+ storage = &gChipLinuxFactoryStorage ;
478
478
std::string filePath = GetFilePath (CHIP_DEFAULT_FACTORY_FILE_NAME);
479
- err = storage->Init (filePath.c_str ());
479
+ err = storage->Init (filePath.c_str ());
480
480
}
481
481
else if (strcmp (ns, kConfigNamespace_ChipConfig ) == 0 )
482
482
{
483
- storage = &gChipLinuxConfigStorage ;
483
+ storage = &gChipLinuxConfigStorage ;
484
484
std::string filePath = GetFilePath (CHIP_DEFAULT_CONFIG_FILE_NAME);
485
- err = storage->Init (filePath.c_str ());
485
+ err = storage->Init (filePath.c_str ());
486
486
}
487
487
else if (strcmp (ns, kConfigNamespace_ChipCounters ) == 0 )
488
488
{
489
- storage = &gChipLinuxCountersStorage ;
489
+ storage = &gChipLinuxCountersStorage ;
490
490
std::string filePath = GetFilePath (CHIP_DEFAULT_DATA_FILE_NAME);
491
- err = storage->Init (filePath.c_str ());
491
+ err = storage->Init (filePath.c_str ());
492
492
}
493
493
494
494
SuccessOrExit (err);
0 commit comments