Skip to content

Commit 3f3da3e

Browse files
committed
Fix CI build issue
1 parent 2809f51 commit 3f3da3e

File tree

1 file changed

+3
-3
lines changed
  • examples/energy-management-app/linux

1 file changed

+3
-3
lines changed

examples/energy-management-app/linux/main.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ constexpr uint16_t kOptionFeatureMap = 'f';
3939
// Define the chip::ArgParser command line structures for extending the command line to support the
4040
// -f/--featureMap option
4141
static chip::ArgParser::OptionDef sFeatureMapOptionDefs[] = {
42-
{ "featureSet", chip::ArgParser::kArgumentRequired, kOptionFeatureMap }, { NULL }
42+
{ "featureSet", chip::ArgParser::kArgumentRequired, kOptionFeatureMap }, { nullptr }
4343
};
4444

4545
static chip::ArgParser::OptionSet sCmdLineOptions = {
@@ -74,11 +74,11 @@ static uint32_t ParseNumber(const char * pString)
7474
uint32_t num = 0;
7575
if (strlen(pString) > 2 && pString[0] == '0' && pString[1] == 'x')
7676
{
77-
num = (uint32_t) strtoul(&pString[2], NULL, 16);
77+
num = (uint32_t) strtoul(&pString[2], nullptr, 16);
7878
}
7979
else
8080
{
81-
num = (uint32_t) strtoul(pString, NULL, 10);
81+
num = (uint32_t) strtoul(pString, nullptr, 10);
8282
}
8383

8484
return num;

0 commit comments

Comments
 (0)