File tree 1 file changed +3
-3
lines changed
examples/energy-management-app/linux
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ constexpr uint16_t kOptionFeatureMap = 'f';
39
39
// Define the chip::ArgParser command line structures for extending the command line to support the
40
40
// -f/--featureMap option
41
41
static chip::ArgParser::OptionDef sFeatureMapOptionDefs [] = {
42
- { " featureSet" , chip::ArgParser::kArgumentRequired , kOptionFeatureMap }, { NULL }
42
+ { " featureSet" , chip::ArgParser::kArgumentRequired , kOptionFeatureMap }, { nullptr }
43
43
};
44
44
45
45
static chip::ArgParser::OptionSet sCmdLineOptions = {
@@ -74,11 +74,11 @@ static uint32_t ParseNumber(const char * pString)
74
74
uint32_t num = 0 ;
75
75
if (strlen (pString) > 2 && pString[0 ] == ' 0' && pString[1 ] == ' x' )
76
76
{
77
- num = (uint32_t ) strtoul (&pString[2 ], NULL , 16 );
77
+ num = (uint32_t ) strtoul (&pString[2 ], nullptr , 16 );
78
78
}
79
79
else
80
80
{
81
- num = (uint32_t ) strtoul (pString, NULL , 10 );
81
+ num = (uint32_t ) strtoul (pString, nullptr , 10 );
82
82
}
83
83
84
84
return num;
You can’t perform that action at this time.
0 commit comments