@@ -121,7 +121,7 @@ class EnvironmentOptionsParser : public OptionsParser<EnvironmentOptions> {
121
121
EnvironmentOptionsParser ();
122
122
explicit EnvironmentOptionsParser (const DebugOptionsParser& dop)
123
123
: EnvironmentOptionsParser() {
124
- Insert (& dop, &EnvironmentOptions::get_debug_options);
124
+ Insert (dop, &EnvironmentOptions::get_debug_options);
125
125
}
126
126
};
127
127
@@ -386,7 +386,7 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
386
386
kAllowedInEnvironment );
387
387
#endif // NODE_REPORT
388
388
389
- Insert (& eop, &PerIsolateOptions::get_per_env_options);
389
+ Insert (eop, &PerIsolateOptions::get_per_env_options);
390
390
}
391
391
392
392
PerProcessOptionsParser::PerProcessOptionsParser (
@@ -496,7 +496,7 @@ PerProcessOptionsParser::PerProcessOptionsParser(
496
496
#endif
497
497
#endif
498
498
499
- Insert (& iop, &PerProcessOptions::get_per_isolate_options);
499
+ Insert (iop, &PerProcessOptions::get_per_isolate_options);
500
500
}
501
501
502
502
inline std::string RemoveBrackets (const std::string& host) {
@@ -510,7 +510,8 @@ inline int ParseAndValidatePort(const std::string& port,
510
510
std::vector<std::string>* errors) {
511
511
char * endptr;
512
512
errno = 0 ;
513
- const long result = strtol (port.c_str (), &endptr, 10 ); // NOLINT(runtime/int)
513
+ const unsigned long result = // NOLINT(runtime/int)
514
+ strtoul (port.c_str (), &endptr, 10 );
514
515
if (errno != 0 || *endptr != ' \0 ' ||
515
516
(result != 0 && result < 1024 ) || result > 65535 ) {
516
517
errors->push_back (" must be 0 or in range 1024 to 65535." );
0 commit comments