Skip to content

Commit

Permalink
[shell] Style changes from code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
turon committed Jan 7, 2022
1 parent 3f87afc commit 1fdc743
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions examples/shell/shell_common/cmd_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ bool lowPowerClusterSleep()
return true;
}

static chip::Shell::Engine sShellServerSubcommands;
static uint16_t sServerPortOperational = CHIP_PORT;
static uint16_t sServerPortCommissioning = CHIP_UDC_PORT;
static bool sServerEnabled = false;
// Anonymous namespace for file-scoped, static variables.
namespace {

chip::Shell::Engine sShellServerSubcommands;
uint16_t sServerPortOperational = CHIP_PORT;
uint16_t sServerPortCommissioning = CHIP_UDC_PORT;
bool sServerEnabled = false;

} // namespace

static CHIP_ERROR CmdAppServerHelp(int argc, char ** argv)
{
Expand Down

0 comments on commit 1fdc743

Please sign in to comment.